code: def set_list_values(list_value, values):
      """Sets a ListValue to have the values in values."""
  
      def format_one(value):
          if isinstance(value, str):
              return struct_pb2.Value(string_value=value)
          elif isinstance(value, float):
              return struct_pb2.Value(number_value=value)
          elif isinstance(value, six.integer_types):
              return struct_pb2.Value(int_value=value)
          else:
              raise ValueError("Unsupported type ", value)
  
      del list_value.values[:]
      list_value.values.extend([format_one(value) for value in values])
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl import flags
  from absl.testing import absltest
  from etils import epath
  import six
  from third_party.nucleus.protos import position_pb2
  from third_party.nucleus.protos import reads_pb2
  from third_party.nucleus.protos import struct_pb2
  from third_party.nucleus.protos import variants_pb2
  from third_party.nucleus.util import cigar
label_desc: Use image node_id 4 for calling a global function with example usage: set_list_values(list_value, values) and returns: struct_pb2, struct_pb2, struct_pb2