def create_valuetype_list(length, elem_shape, dtype):
    """
    Return proto.MIL_pb2.ValueType with List (ListType) set.
    length: length of list (int)
    """
    v_type = proto.MIL_pb2.ValueType()
    update_listtype(v_type.listType, length, elem_shape, dtype)
    return v_type

    Return proto.MIL_pb2.ValueType with List (ListType) set.
    length: length of list (int)
    
coremltools/converters/mil/backend/mil/helper.py