def METHOD_NAME(elem_cls, size):
    if not size > 0:
        raise ValueError("size must be >0")
    if elem_cls == "double":
        dtype = np.float64
    elif elem_cls == "float":
        dtype = np.float32
    elif elem_cls == "int64_t":
        dtype = np.int64
    elif elem_cls == "uint64_t":
        dtype = np.uint64
    elif elem_cls == "bool":
        dtype = np.bool_
    else:
        raise NotImplementedError(f"Unsupported type {elem_cls}")
    result = np.empty(size, dtype=dtype)
    return FakeThrustRTC.DVVector(result)