code: def value_from_pb(value_pb: pb.ParamType) -> Any:
      which = value_pb.WhichOneof("value")
      if which == "boolValue":
          return value_pb.boolValue
      if which == "intValue":
          return value_pb.intValue
      if which == "floatValue":
          return value_pb.floatValue
      if which == "stringValue":
          return value_pb.stringValue
      if which == "objectValueJson":
          return json.loads(value_pb.objectValueJson)
  
imports: import datetime
  import json
  from typing import List, Dict, Any, Optional, MutableMapping
  from google.protobuf import timestamp_pb2
  from .servicepb import keepsake_pb2
  from .experiment import Experiment
  from .checkpoint import Checkpoint, PrimaryMetric, CheckpointList
label_desc: Use image node_id 11 for calling a global function with example usage: value_from_pb(value_pb) and returns: value_pb, value_pb, value_pb, value_pb, json