#NEWLINE# def numpy_cupy_array_almost_equal_nulp( nulp = 1 , name = 'xp' , type_check = True , accept_error = True ) : #NEWLINE# #INDENT# 'Decorator that checks results of NumPy and CuPy are equal w.r.t. spacing.\n\n    Args:\n         nulp(int): The maximum number of unit in the last place for tolerance.\n         name(str): Argument name whose value is either\n             ``numpy`` or ``cupy`` module.\n         type_check(bool): If ``True``, consistency of dtype is also checked.\n         accept_error(bool): If ``True``, errors are not raised as long as\n             the errors occurred are identical between NumPy and CuPy.\n\n    Decorated test fixture is required to return the same arrays\n    in the sense of :func:`cupy.testing.assert_array_almost_equal_nulp`\n    (except the type of array module) even if ``xp`` is ``numpy`` or ``cupy``.\n\n    .. seealso:: :func:`cupy.testing.assert_array_almost_equal_nulp`\n    ' #NEWLINE# def check_func( x , y ) : #NEWLINE# #INDENT# array . assert_array_almost_equal_nulp ( x , y , nulp ) #NEWLINE# #UNINDENT# return _make_decorator ( check_func , name , type_check , accept_error )