def numpy_cupy_array_almost_equal(decimal=6, err_msg='', verbose=True, name='xp', type_check=True, accept_error=False):
 def check_func(x, y):
  array.assert_array_almost_equal(x, y, decimal, err_msg, verbose)
 return _make_decorator(check_func, name, type_check, accept_error)

def numpy_cupy_array_almost_equal ( decimal = 6 , err_msg = '' , verbose = True , name = 'xp' , type_check = True , accept_error = False ) : def check_func ( x , y ) : array . assert_array_almost_equal ( x , y , decimal , err_msg , verbose ) return _make_decorator ( check_func , name , type_check , accept_error )
decorator that checks numpy results and cupy ones are almost equal .