code: def build_metadata_value_dict(
      value_dict: Mapping[str, types.ExecPropertyTypes]
  ) -> Dict[str, metadata_store_pb2.Value]:
      """Converts plain value dict into MLMD value dict."""
      result = {}
      if not value_dict:
          return result
      for k, v in value_dict.items():
          if v is None:
              continue
          value = metadata_store_pb2.Value()
          result[k] = set_metadata_value(value, v)
      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 5 for calling a global function with example usage: build_metadata_value_dict(value_dict) and returns: result, result