code: def assert_models_close(
      m: gpflow.models.GPModel,
      mref: gpflow.models.GPModel,
      **tol_kwargs: Any,
  ) -> None:
      np.testing.assert_allclose(
          m.kernel.variance.numpy(),
          mref.kernel.variance.numpy(),
          **tol_kwargs,
      )
      np.testing.assert_allclose(
          m.kernel.lengthscales.numpy(),
          mref.kernel.lengthscales.numpy(),
          **tol_kwargs,
      )
      np.testing.assert_allclose(
          m.likelihood.variance.numpy(),
          mref.likelihood.variance.numpy(),
          **tol_kwargs,
      )
  
file_path: GPflow/tests/gpflow/utilities/test_training_loop.py
imports: from typing import Any
  import numpy
  import tensorflow
  from check_shapes import ShapeChecker
  import gpflow
  from gpflow.utilities import training_loop
label_desc: Use image node_id 2 for calling a global function with example usage: assert_models_close(m, mref) without return types