def METHOD_NAME(self, dtype):
    possible_flags = [['C_CONTIGUOUS'], ['F_CONTIGUOUS']]
    x = cupy.zeros((2, 3, 4), dtype)
    for flags in possible_flags:
        arr = cupy.require(x, dtype, flags)
        for parameter in flags:
            assert arr.flags[parameter]
            assert arr.dtype == dtype