class_docstr: Main micro benchmark class.
code: def _benchmark_np_and_tf_np_unary(self, op):
      sizes = [(100,), (10000,), (1000000,)]
      repeats = [FLAGS.repeat] * 2 + [10]
      times = []
      for size, repeat in zip(sizes, repeats):
          x = np.random.uniform(size=size).astype(
              np.float32, copy=False
          )
          name = "{}_{}".format(self._get_name(), size)
          times.append(
              self._benchmark_np_and_tf_np(name, op, (x,), repeat)
          )
      self._print_times(op, sizes, times)
  
imports: import gc
  import time
  from absl import flags
  from absl import logging
  import numpy
  import tensorflow.compat.v2
  from tensorflow.python.ops.numpy_ops.integration_test.benchmarks import numpy_mlp
  from tensorflow.python.ops.numpy_ops.integration_test.benchmarks import tf_numpy_mlp
label_desc: Use image node_id 7 for calling the MicroBenchmarks obj's underlying member method code with example usage: obj._benchmark_np_and_tf_np_unary(op) without return types