code: def _assert_metadata_type_match(
      queried_metadata_type: MetadataType,
      new_metadata_type: MetadataType,
  ) -> bool:
      a = copy.deepcopy(queried_metadata_type)
      b = copy.deepcopy(new_metadata_type)
      a.ClearField("id")
      b.ClearField("id")
      return a == b
  
file_path: tfx/tfx/orchestration/portable/mlmd/common_utils.py
imports: import copy
  from typing import Any, TypeVar
  from absl import logging
  from tfx.orchestration import metadata
  import ml_metadata
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_metadata_type_match(queried_metadata_type, new_metadata_type) and returns: unknown