code: def parse_execution_properties(
      exec_properties: Any,
  ) -> Dict[str, Any]:
      """Parses a map from key to Value proto as execution properties.
  
      Parses a mapping field in a protobuf message, whose value is a Kubeflow Value
      proto messages, to a Python dict, whose value is a Python primitive object.
  
      Args:
        exec_properties: the mapping field in the proto message, representing the
          execution properties of the component.
  
      Returns:
        dictionary of the parsed execution properties.
      """
      result = {}
      for k, v in exec_properties.items():
          # TODO(b/159835994): Remove this once pipeline populates INPUT_BASE_KEY
          if k == _OLD_INPUT_BASE_PROPERTY_NAME:
              k = standard_component_specs.INPUT_BASE_KEY
          # Translate each field from Value pb to plain value.
          result[k] = getattr(v, v.WhichOneof("value"))
          if result[k] is None:
              raise TypeError(
                  "Unrecognized type encountered at field %s of execution"
                  " properties %s" % (k, exec_properties)
              )
  
      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 5 for calling a global function with example usage: parse_execution_properties(exec_properties) and returns: result