code: def testArtifactSchemaMapping(self):
      # Test first party standard artifact.
      example_schema = compiler_utils.get_artifact_schema(
          standard_artifacts.Examples
      )
      expected_example_schema = fileio.open(
          os.path.join(self._schema_base_dir, "Examples.yaml"), "rb"
      ).read()
      self.assertEqual(expected_example_schema, example_schema)
  
      # Test Kubeflow simple artifact.
      file_schema = compiler_utils.get_artifact_schema(
          simple_artifacts.File
      )
      expected_file_schema = fileio.open(
          os.path.join(self._schema_base_dir, "File.yaml"), "rb"
      ).read()
      self.assertEqual(expected_file_schema, file_schema)
  
      # Test custom artifact type.
      my_artifact_schema = compiler_utils.get_artifact_schema(
          _MyArtifact
      )
      self.assertDictEqual(
          yaml.safe_load(my_artifact_schema),
          yaml.safe_load(_EXPECTED_MY_ARTIFACT_SCHEMA),
      )
  
imports: import os
  from absl.testing import parameterized
  from kfp.pipeline_spec import pipeline_spec_pb2
  import tensorflow
  from tfx.dsl.io import fileio
  from tfx.orchestration import data_types
  from tfx.orchestration.kubeflow.v2 import compiler_utils
  from tfx.types import artifact
  from tfx.types import channel
  from tfx.types import channel_utils
  from tfx.types import standard_artifacts
  from tfx.types.experimental import simple_artifacts
  import yaml
  from google.protobuf import text_format
label_desc: Use image node_id 3 for calling the CompilerUtilsTest obj's underlying member method code with example usage: obj.testArtifactSchemaMapping() without return types