def METHOD_NAME(self, dtype):
    if self.shape[0] != self.shape[1]:
        self.skipTest(
            'skip non-square tests since scipy.lu_factor requires square')
    A = testing.shaped_random(self.shape, cupy, dtype=dtype)
    A -= A.mean(axis=0, keepdims=True)
    A -= A.mean(axis=1, keepdims=True)
    with warnings.catch_warnings():
        warnings.simplefilter('ignore', RuntimeWarning)
        self.check_lu_factor_reconstruction(A)