code: def testConstruct(self):
      statistics_artifact = standard_artifacts.ExampleStatistics()
      statistics_artifact.split_names = (
          artifact_utils.encode_split_names(["train", "eval"])
      )
      exclude_splits = ["eval"]
      example_validator = component.ExampleValidator(
          statistics=channel_utils.as_channel([statistics_artifact]),
          schema=channel_utils.as_channel(
              [standard_artifacts.Schema()]
          ),
          exclude_splits=exclude_splits,
      )
      self.assertEqual(
          standard_artifacts.ExampleAnomalies.TYPE_NAME,
          example_validator.outputs[
              standard_component_specs.ANOMALIES_KEY
          ].type_name,
      )
      self.assertEqual(
          example_validator.spec.exec_properties[
              standard_component_specs.EXCLUDE_SPLITS_KEY
          ],
          '["eval"]',
      )
  
file_path: tfx/tfx/components/example_validator/component_test.py
imports: import tensorflow
  from tfx.components.example_validator 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 ExampleValidatorTest obj's underlying member method code with example usage: obj.testConstruct() without return types