code: def testConstructSubclassQueryBased(self):
      example_gen = TestQueryBasedExampleGenComponent(
          input_config=example_gen_pb2.Input(
              splits=[
                  example_gen_pb2.Input.Split(
                      name="single", pattern="query"
                  ),
              ]
          )
      )
      self.assertEqual({}, example_gen.inputs)
      self.assertEqual(
          driver.QueryBasedDriver, example_gen.driver_class
      )
      self.assertEqual(
          standard_artifacts.Examples.TYPE_NAME,
          example_gen.outputs[
              standard_component_specs.EXAMPLES_KEY
          ].type_name,
      )
      self.assertEqual(
          example_gen.exec_properties[
              standard_component_specs.OUTPUT_DATA_FORMAT_KEY
          ],
          example_gen_pb2.FORMAT_TF_EXAMPLE,
      )
      self.assertEqual(
          example_gen.exec_properties[
              standard_component_specs.OUTPUT_FILE_FORMAT_KEY
          ],
          example_gen_pb2.FORMAT_TFRECORDS_GZIP,
      )
      self.assertIsNone(
          example_gen.exec_properties.get(
              standard_component_specs.CUSTOM_CONFIG_KEY
          )
      )
  
imports: import tensorflow
  from tfx.components.example_gen import base_example_gen_executor
  from tfx.components.example_gen import component
  from tfx.components.example_gen import driver
  from tfx.dsl.components.base import executor_spec
  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
  from google.protobuf import any_pb2
label_desc: Use image node_id 1 for calling the ComponentTest obj's underlying member method code with example usage: obj.testConstructSubclassQueryBased() without return types