class_docstr: The handler for the system Importer node.
class_docstr_tok: ["The","handler","for","the","system","Importer","node","."]
code: def _extract_proto_map(
      self,
      # The actual type of proto message of map<str, pipeline_pb2.Value>.
      proto_map: Any,
  ) -> Dict[str, Any]:
      extract_mlmd_value = lambda v: getattr(v, v.WhichOneof("value"))
      return {
          k: extract_mlmd_value(v.field_value)
          for k, v in proto_map.items()
      }
  
file_path: tfx/tfx/orchestration/portable/importer_node_handler.py
imports: from typing import Any, Dict, List, cast
  from absl import logging
  from tfx import types
  from tfx.dsl.components.common import importer
  from tfx.orchestration import data_types_utils
  from tfx.orchestration import metadata
  from tfx.orchestration.portable import data_types
  from tfx.orchestration.portable import execution_publish_utils
  from tfx.orchestration.portable import inputs_utils
  from tfx.orchestration.portable import system_node_handler
  from tfx.orchestration.portable.mlmd import context_lib
  from tfx.proto.orchestration import pipeline_pb2
label_desc: Use image node_id 1 for calling the ImporterNodeHandler obj's underlying member method code with example usage: obj._extract_proto_map(proto_map) and returns: unknown