code: def create_valuetype_scalar(data_type):
      """
      Return pm.ValueType with DataType set
      """
      v_type = pm.ValueType()
      update_tensortype(v_type.tensorType, (), data_type)
      return v_type
  
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 1 for calling a global function with example usage: create_valuetype_scalar(data_type) and returns: v_type