code: def _make_mean_and_var_accumulator_from_instance(instance, axis=None):
      return analyzers._WeightedMeanAndVarAccumulator(
          count=np.sum(np.ones_like(instance), axis=axis),
          mean=np.mean(instance, axis=axis),
          weight=np.sum(np.ones_like(instance), axis=axis),
          variance=np.var(instance, axis=axis),
      )
  
file_path: transform/tensorflow_transform/analyzers_test.py
imports: import pickle
  import numpy
  import tensorflow
  from tensorflow_transform import analyzers
  from tensorflow_transform import test_case
label_desc: Use image node_id 1 for calling a global function with example usage: _make_mean_and_var_accumulator_from_instance(instance, axis) and returns: analyzers