code: def build_value_dict(
      metadata_value_dict: Mapping[str, metadata_store_pb2.Value]
  ) -> Dict[str, types.ExecPropertyTypes]:
      """Converts MLMD value dict into plain value dict."""
      result = {}
      for k, v in metadata_value_dict.items():
          result[k] = getattr(v, v.WhichOneof("value"))
      return result
  
imports: from typing import Dict, Iterable, List, Mapping, Optional
  from tfx import types
  from tfx.proto.orchestration import execution_result_pb2
  from tfx.proto.orchestration import pipeline_pb2
  from tfx.types import artifact_utils
  from tfx.utils import json_utils
  from tfx.utils import proto_utils
  from google.protobuf import message
  from ml_metadata.proto import metadata_store_pb2
  from ml_metadata.proto import metadata_store_service_pb2
label_desc: Use image node_id 4 for calling a global function with example usage: build_value_dict(metadata_value_dict) and returns: result