code: def setUp(self):
      super().setUp()
      self._output_data_dir = os.path.join(
          os.environ.get(
              "TEST_UNDECLARED_OUTPUTS_DIR", self.get_temp_dir()
          ),
          self._testMethodName,
      )
  
      # Create output dict.
      self._examples = standard_artifacts.Examples()
      self._examples.uri = self._output_data_dir
      self._output_dict = {
          standard_component_specs.EXAMPLES_KEY: [self._examples]
      }
  
      # Create exec proterties for output splits.
      self._exec_properties = {
          standard_component_specs.INPUT_CONFIG_KEY: proto_utils.proto_to_json(
              example_gen_pb2.Input(
                  splits=[
                      example_gen_pb2.Input.Split(
                          name="single", pattern="single/*"
                      ),
                  ]
              )
          ),
          standard_component_specs.OUTPUT_CONFIG_KEY: proto_utils.proto_to_json(
              example_gen_pb2.Output(
                  split_config=example_gen_pb2.SplitConfig(
                      splits=[
                          example_gen_pb2.SplitConfig.Split(
                              name="train", hash_buckets=2
                          ),
                          example_gen_pb2.SplitConfig.Split(
                              name="eval", hash_buckets=1
                          ),
                      ]
                  )
              )
          ),
      }
  
imports: import os
  from typing import Any, Dict, Iterable
  import apache_beam
  import pyarrow
  import tensorflow
  from tfx.components.example_gen import base_example_gen_executor
  from tfx.dsl.io import fileio
  from tfx.proto import example_gen_pb2
  from tfx.types import artifact_utils
  from tfx.types import standard_artifacts
  from tfx.types import standard_component_specs
  from tfx.utils import proto_utils
label_desc: Use image node_id 1 for calling the BaseExampleGenExecutorTest obj's underlying member method code with example usage: obj.setUp() without return types