code: def testConstruct(self):
      examples1 = standard_artifacts.Examples()
      examples1.split_names = artifact_utils.encode_split_names(
          ["train", "eval"]
      )
  
      examples2 = standard_artifacts.Examples()
      examples2.split_names = artifact_utils.encode_split_names(
          ["train", "eval", "foo"]
      )
      include_split_pairs = [("train", "train"), ("eval", "foo")]
      config = example_diff_pb2.ExampleDiffConfig(
          paired_example_skew=example_diff_pb2.PairedExampleSkew(
              skew_sample_size=9
          )
      )
      example_diff = component.ExampleDiff(
          examples_test=channel_utils.as_channel([examples1]),
          examples_base=channel_utils.as_channel([examples2]),
          config=config,
          include_split_pairs=include_split_pairs,
      )
      self.assertEqual(
          standard_artifacts.ExamplesDiff.TYPE_NAME,
          example_diff.outputs[
              standard_component_specs.EXAMPLE_DIFF_RESULT_KEY
          ].type_name,
      )
      self.assertEqual(
          example_diff.spec.exec_properties[
              standard_component_specs.INCLUDE_SPLIT_PAIRS_KEY
          ],
          '[["train", "train"], ["eval", "foo"]]',
      )
      restored_config = example_diff.exec_properties[
          standard_component_specs.EXAMPLE_DIFF_CONFIG_KEY
      ]
      self.assertEqual(restored_config, config)
  
file_path: tfx/tfx/components/example_diff/component_test.py
imports: import tensorflow
  from tfx.components.example_diff import component
  from tfx.proto import example_diff_pb2
  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