@testing.for_all_dtypes()
@testing.numpy_cupy_array_equal()
def test_flatnonzero(self, xp, dtype):
    array = xp.array(self.array, dtype=dtype)
    return xp.flatnonzero(array)
@testing.for_all_dtypes()
@testing.numpy_cupy_array_equal()
def test_flatnonzero(self, xp, dtype):
    array = xp.array(self.array, dtype=dtype)
    return xp.flatnonzero(array)