code: def _set_protomap_from_dict(d):
      """Returns a proto Map(str --> ListValue) with the given fields set.
  
      Args:
        d: dict(str --> list(Value)). The data to populate.
  
      Returns:
        The protocol buffer-defined Map(str --> ListValue).
      """
      # We use a Variant as an intermediate data structure since it contains the
      # desired output map types.
      v = variants_pb2.Variant()
      for key, values in d.items():
          v.info[key].values.extend(values)
      return v.info
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  from absl.testing import absltest
  from absl.testing import parameterized
  from third_party.nucleus.protos import struct_pb2
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.util import struct_utils
label_desc: Use image node_id 1 for calling a global function with example usage: _set_protomap_from_dict(d) and returns: v