code: def testConstruct(self):
      examples = standard_artifacts.Examples()
      examples.split_names = artifact_utils.encode_split_names(
          ["train", "eval"]
      )
      exclude_splits = ["eval"]
      statistics_gen = component.StatisticsGen(
          examples=channel_utils.as_channel([examples]),
          exclude_splits=exclude_splits,
      )
      self.assertEqual(
          standard_artifacts.ExampleStatistics.TYPE_NAME,
          statistics_gen.outputs[
              standard_component_specs.STATISTICS_KEY
          ].type_name,
      )
      self.assertEqual(
          statistics_gen.spec.exec_properties[
              standard_component_specs.EXCLUDE_SPLITS_KEY
          ],
          '["eval"]',
      )
  
file_path: tfx/tfx/components/statistics_gen/component_test.py
imports: import tensorflow
  import tensorflow_data_validation
  from tfx.components.statistics_gen import component
  from tfx.types import artifact_utils
  from tfx.types import channel_utils
  from tfx.types import standard_artifacts
  from tfx.types import standard_component_specs
label_desc: Use image node_id 1 for calling the ComponentTest obj's underlying member method code with example usage: obj.testConstruct() without return types