code: def _add_field_with_type(field_map, field_name, value, value_type):
      """Adds values to a particular map field containing a ListValue."""
      if not isinstance(value, (list, types.GeneratorType, tuple)):
          value = [value]
      struct_values = [
          struct_pb2.Value(**{value_type: v}) for v in value
      ]
      field_map[field_name].values.extend(struct_values)
  
file_path: deepvariant/third_party/nucleus/util/struct_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import types
  from third_party.nucleus.protos import struct_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: _add_field_with_type(field_map, field_name, value, value_type) without return types