code: def _build_output_artifact_dict(
      output_artifacts: typing_utils.ArtifactMultiMap,
  ) -> Mapping[str, Sequence[metadata_store_pb2.Artifact]]:
      return {
          k: [artifact.mlmd_artifact for artifact in artifacts]
          for k, artifacts in output_artifacts.items()
      }
  
imports: from typing import Dict, Mapping, Optional, Sequence
  from absl.testing import parameterized
  import tensorflow
  from tfx import types
  from tfx.orchestration.portable import merge_utils
  from tfx.orchestration.portable import outputs_utils
  from tfx.types import standard_artifacts
  from tfx.utils import test_case_utils
  from tfx.utils import typing_utils
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _build_output_artifact_dict(output_artifacts) and returns: unknown