code: def _computeReadVariableOpDuration(self, num_ops, num_iters):
      def add_op_to_graph(num_ops):
          with func_graph.FuncGraph("resource").as_default():
              handle = resource_variable_ops.var_handle_op(
                  dtype=dtypes.int32, shape=[]
              )
              resource_variable_ops.assign_variable_op(
                  handle, constant_op.constant(1, dtype=dtypes.int32)
              )
              for _ in range(num_ops):
                  gen_resource_variable_ops.read_variable_op(
                      handle, dtype=dtypes.int32
                  )
  
      runtimes = timeit.repeat(
          lambda: add_op_to_graph(num_ops), repeat=10, number=num_iters
      )
      return min(runtimes) / num_iters
  
file_path: tensorflow-upstream/tensorflow/python/framework/experimental/graph_building_test.py
imports: import timeit
  from tensorflow.core.config import flags
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import func_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import gen_resource_variable_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the GraphBuildingBenchmark obj's underlying member method code with example usage: obj._computeReadVariableOpDuration(num_ops, num_iters) and returns: unknown