code: def _retrieve_class_path(
      type_schema: pipeline_pb2.ArtifactTypeSchema,
  ) -> str:
      """Gets the class path from an artifact type schema."""
      if type_schema.WhichOneof("kind") == "schema_title":
          title = type_schema.schema_title
  
      if type_schema.WhichOneof("kind") == "instance_schema":
          data = yaml.safe_load(type_schema.instance_schema)
          title = data.get("title", "tfx.Artifact")
  
      if title in compiler_utils.TITLE_TO_CLASS_PATH:
          # For first party types, the actual import path is maintained in
          # TITLE_TO_CLASS_PATH map.
          return compiler_utils.TITLE_TO_CLASS_PATH[title]
      else:
          # For custom types, the import path is encoded as the schema title.
          return title
  
imports: import hashlib
  from typing import Any, Dict, List, Mapping, MutableMapping, Optional
  from absl import logging
  from kfp.pipeline_spec import pipeline_spec_pb2
  from tfx.components.evaluator import constants
  from tfx.orchestration.kubeflow.v2 import compiler_utils
  from tfx.types import artifact
  from tfx.types import artifact_utils
  from tfx.types import standard_component_specs
  from tfx.utils import import_utils
  import yaml
  from google.protobuf import struct_pb2
  from google.protobuf import json_format
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 10 for calling a global function with example usage: _retrieve_class_path(type_schema) and returns: compiler_utils, title