code: def make_models(
      regression_data: gpflow.base.RegressionData,
  ) -> Tuple[GPR_deprecated, GPR_with_posterior]:
      """Helper function to create models"""
  
      k = gpflow.kernels.Matern52()
  
      mold = GPR_deprecated(data=regression_data, kernel=k)
      mnew = GPR_with_posterior(data=regression_data, kernel=k)
      return mold, mnew
  
file_path: GPflow/tests/gpflow/models/test_gpr_posterior.py
imports: from typing import Tuple
  import numpy
  import pytest
  from check_shapes import check_shapes
  import gpflow
  from gpflow.base import AnyNDArray
  from gpflow.models.gpr import GPR_deprecated, GPR_with_posterior
  from gpflow.posteriors import PrecomputeCacheType
label_desc: Use image node_id 1 for calling a global function with example usage: make_models(regression_data) and returns: mold,  mnew