code: def testBasic(self):
      for keep_dims in [False, True]:
          for dtype in [dtypes.float32, dtypes.float16]:
              self.RunMomentTest(
                  shape=[2, 3, 5, 4],
                  axes=[0],
                  keep_dims=keep_dims,
                  dtype=dtype,
              )
              self.RunMomentTestWithDynamicShape(
                  shape=[2, 3, 5, 4],
                  axes=[0],
                  keep_dims=keep_dims,
                  dtype=dtype,
              )
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_nn_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_impl
  import tensorflow.python.ops.nn_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the MomentsTest obj's underlying member method code with example usage: obj.testBasic() without return types