code: def test_likelihood_variance() -> None:
      vgp0, vgp1, cvgp = _prepare_models()
      assert_allclose(
          vgp0.likelihood.variance.numpy(),
          cvgp.likelihood.likelihoods[0].variance.numpy(),
          atol=1e-2,
      )
      assert_allclose(
          vgp1.likelihood.variance.numpy(),
          cvgp.likelihood.likelihoods[1].variance.numpy(),
          atol=1e-2,
      )
  
file_path: GPflow/tests/gpflow/kernels/test_coregion.py
imports: from typing import Sequence, Tuple
  import numpy
  from check_shapes import ShapeChecker
  from numpy.testing import assert_allclose
  import gpflow
  from gpflow import set_trainable
  from gpflow.base import AnyNDArray
  from gpflow.mean_functions import Constant
  from gpflow.models import VGP
label_desc: Use image node_id 2 for calling a global function with example usage: test_likelihood_variance() without return types