class_docstr: TFT benchmark base class.
class_docstr_tok: ["TFT","benchmark","base","class","."]
docstr: Common implementation to benchmark RunMetaGraphDoFn "manually".
docstr_tok: ["Common","implementation","to","benchmark","RunMetaGraphDoFn","``","manually","''","."]
code: def _benchmarkRunMetaGraphDoFnManualActuationCommon(
      self, force_tf_compat_v1
  ):
      """Common implementation to benchmark RunMetaGraphDoFn "manually"."""
      common_variables = _get_common_variables(
          self._dataset, force_tf_compat_v1
      )
      batch_size, batched_records = _get_batched_records(
          self._dataset, force_tf_compat_v1, self._max_num_examples()
      )
      fn = tft_beam_impl._RunMetaGraphDoFn(  # pylint: disable=protected-access
          tf_config=None,
          shared_graph_state_handle=shared.Shared(),
          passthrough_keys=set(),
          exclude_outputs=None,
          use_tf_compat_v1=force_tf_compat_v1,
          input_tensor_adapter_config=common_variables.tfxio.TensorAdapterConfig(),
      )
      fn.setup()
  
      start = time.time()
      for batch in batched_records:
          _ = list(
              fn.process(
                  batch,
                  saved_model_dir=self._dataset.tft_saved_model_path(
                      force_tf_compat_v1
                  ),
              )
          )
      end = time.time()
      delta = end - start
      self.report_benchmark(
          iters=1,
          wall_time=delta,
          extras={
              "batch_size": batch_size,
              "num_examples": self._dataset.num_examples(
                  limit=self._max_num_examples()
              ),
          },
      )
  
imports: import collections
  import shutil
  import tempfile
  import time
  from absl import logging
  import apache_beam
  from apache_beam.utils import shared
  import tensorflow
  import tensorflow_transform
  from tensorflow_transform import graph_tools
  from tensorflow_transform import impl_helper
  import tensorflow_transform.beam
  from tensorflow_transform.beam import impl
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow_transform.saved import saved_transform_io_v2
  from tensorflow_transform.tf_metadata import dataset_metadata
  from tensorflow_transform.tf_metadata import schema_utils
  import tfx
  from tfx.benchmarks import benchmark_utils
  from tfx.benchmarks import benchmark_base
  from tfx_bsl.coders import example_coder
  from tfx_bsl.tfxio import tensor_adapter
  from tfx_bsl.tfxio import tf_example_record
label_desc: Use image node_id 6 for calling the TFTBenchmarkBase obj's underlying member method code with example usage: obj._benchmarkRunMetaGraphDoFnManualActuationCommon(force_tf_compat_v1) without return types