code: def _get_json_value_mapping(
      mlmd_value_mapping: Dict[str, metadata_store_pb2.Value]
  ) -> Dict[str, Any]:
      """Converts a mapping field with MLMD Value to JSON Value."""
  
      def get_json_value(
          mlmd_value: metadata_store_pb2.Value,
      ) -> artifact.JsonValueType:
          if not mlmd_value.HasField("value"):
              return None
          elif mlmd_value.WhichOneof("value") == "int_value":
              return float(mlmd_value.int_value)
          elif mlmd_value.WhichOneof("value") == "double_value":
              return mlmd_value.double_value
          elif mlmd_value.WhichOneof("value") == "string_value":
              return mlmd_value.string_value
          elif mlmd_value.WhichOneof("value") == "struct_value":
              return artifact._decode_struct_value(
                  mlmd_value.struct_value
              )  # pylint: disable=protected-access
          else:
              raise TypeError(
                  "Get unknown type of value: {}".format(mlmd_value)
              )
  
      return {
          k: get_json_value(v) for k, v in mlmd_value_mapping.items()
      }
  
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 7 for calling a global function with example usage: _get_json_value_mapping(mlmd_value_mapping) and returns: unknown, None, float, mlmd_value, mlmd_value, artifact