def METHOD_NAME(type: Type, length=20):
    f = {
        Type.INT64: lambda x: np.random.randint(0, 1000, x),
        Type.DOUBLE: lambda x: np.random.uniform(low=0, high=1000, size=x),
        Type.STRING: generate_string_array,
    }
    return pa.array(f[type](length))