docstr: Copied from benchmarks_test.py.
code: def _get_benchmark_name(self):
      """Copied from benchmarks_test.py."""
      stack = tf_inspect.stack()
      name = None
      for frame in stack[::-1]:
          f_locals = frame[0].f_locals
          f_self = f_locals.get("self", None)
          if isinstance(f_self, test.Benchmark):
              name = frame[3]  # Get the method name
              # This is a hack to get around the fact that some methods might have a
              # disable_tfrt decorator around them. In that case a function called
              # 'decorated' wraps the real called function underneath and so we
              # peek one deeper into the stack to get the real name.
              if name == "decorated":
                  continue
              else:
                  break
      if name is None:
          raise ValueError(
              "Unable to determine calling Benchmark function."
          )
      if context.is_tfrt_enabled():
          name = name + "_tfrt"
      if context.run_eager_op_as_function_enabled():
          name = name + "_eager_op_as_function"
      return name
  
imports: import time
  from tensorflow.python.data.experimental.ops import prefetching_ops
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.eager import benchmarks_test_base
  from tensorflow.python.eager import context
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import bitwise_ops
  from tensorflow.python.ops import critical_section_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_map_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 2 for calling the MicroBenchmarks obj's underlying member method code with example usage: obj._get_benchmark_name() and returns: name