code: def _get_garbage_collection_policies_for_node(
      node: node_proto_view.NodeProtoView,
  ) -> Mapping[
      str, garbage_collection_policy_pb2.GarbageCollectionPolicy
  ]:
      return {
          output_key: output_spec.garbage_collection_policy
          for output_key, output_spec in node.outputs.outputs.items()
          if output_spec.HasField("garbage_collection_policy")
      }
  
imports: import collections
  import itertools
  from typing import Mapping, Optional, Sequence
  from absl import logging
  from tfx import types
  from tfx.dsl.io import fileio
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import metadata
  from tfx.orchestration import node_proto_view
  from tfx.orchestration.experimental.core import task
  from tfx.orchestration.portable.mlmd import event_lib
  from tfx.orchestration.portable.mlmd import execution_lib
  from tfx.orchestration.portable.mlmd import store_ext
  from tfx.proto.orchestration import garbage_collection_policy_pb2
  from tfx.orchestration.experimental.core import garbage_collection_extensions
  from ml_metadata.proto import metadata_store_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: _get_garbage_collection_policies_for_node(node) and returns: unknown