Data-driven multiscale modeling of subgrid parameterizations in climate models