code: def testConstructWithRangeConfig(self):
      range_config = range_config_pb2.RangeConfig(
          static_range=range_config_pb2.StaticRange(
              start_span_number=2, end_span_number=2
          )
      )
      # @span_yyyymmdd_utc will replaced to '19700103' to query, span `2` will be
      # recorded in output Example artifact.
      big_query_example_gen = component.BigQueryExampleGen(
          query="select * from table where date=@span_yyyymmdd_utc",
          range_config=range_config,
      )
      self.assertEqual(
          standard_artifacts.Examples.TYPE_NAME,
          big_query_example_gen.outputs[
              standard_component_specs.EXAMPLES_KEY
          ].type_name,
      )
      stored_range_config = range_config_pb2.RangeConfig()
      proto_utils.json_to_proto(
          big_query_example_gen.exec_properties[
              standard_component_specs.RANGE_CONFIG_KEY
          ],
          stored_range_config,
      )
      self.assertEqual(range_config, stored_range_config)
  
file_path: tfx/tfx/extensions/google_cloud_big_query/example_gen/component_test.py
imports: import tensorflow
  from tfx.extensions.google_cloud_big_query.example_gen import component
  from tfx.proto import example_gen_pb2
  from tfx.proto import range_config_pb2
  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 4 for calling the ComponentTest obj's underlying member method code with example usage: obj.testConstructWithRangeConfig() without return types