code: def _get_hashed_id(
      full_name: str, name_from_id: MutableMapping[int, str]
  ) -> int:
      """Converts the string-typed name to int-typed ID."""
      # Built-in hash function will not exceed the range of int64, which is the
      # type of id in metadata artifact proto.
      result = (
          int(hashlib.sha256(full_name.encode("utf-8")).hexdigest(), 16)
          % _INT64_MAX
      )
      name_from_id[result] = full_name
      return result
  
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 2 for calling a global function with example usage: _get_hashed_id(full_name, name_from_id) and returns: result