code: def __init__(self, Y: gf.base.AnyNDArray):
      n_repeats = Y.shape[-1]
      self.var_mean = np.var(Y, axis=-1, keepdims=True) / n_repeats
  
file_path: GPflow/doc/sphinx/notebooks/advanced/varying_noise.pct.py
imports: import os
  import warnings
  from typing import Optional, Tuple
  import matplotlib.pyplot
  import numpy
  import tensorflow
  from check_shapes import inherit_check_shapes
  import gpflow
  from gpflow.ci_utils import reduce_in_tests
  from gpflow.utilities import print_summary
label_desc: Use image node_id 1 to create a new FixedVarianceOfMean object from inherited base classes: gf.functions with example: obj = FixedVarianceOfMean(Y)