code: def create_list_scalarvalue(py_list, np_type):
      """
      Return a Value of type List, which holds scalar values
      """
      builtin_type = numpy_type_to_builtin_type(np_type)
      value_type = create_valuetype_list(
          length=len(py_list),
          elem_shape=(),
          dtype=types_to_proto_primitive(builtin_type),
      )
      val = pm.Value(type=value_type)
  
      list_val = val.immediateValue.list
      for v in py_list:
          item_val = list_val.values.add()
          item_val.CopyFrom(create_scalar_value(v))
  
      return val
  
imports: import os
  import numpy
  import coremltools.proto.FeatureTypes_pb2
  import coremltools.proto.MIL_pb2
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.types import BUILTIN_TO_PROTO_TYPES, builtin_to_string, numpy_type_to_builtin_type, type_to_builtin_type
  from coremltools.converters.mil.mil.types.type_mapping import np_val_to_py_type
  from coremltools.models.utils import _WEIGHTS_DIR_NAME, _WEIGHTS_FILE_NAME
label_desc: Use image node_id 13 for calling a global function with example usage: create_list_scalarvalue(py_list, np_type) and returns: val