def create_valuetype_scalar(data_type):
    """
    Return proto.MIL_pb2.ValueType with DataType set
    """
    v_type = proto.MIL_pb2.ValueType()
    update_tensortype(v_type.tensorType, (), data_type)
    return v_type

    Return proto.MIL_pb2.ValueType with DataType set
    
coremltools/converters/mil/backend/mil/helper.py