code: def numpy_chainerx_array_equal(**kwargs):
      """numpy_chainerx_array_equal(
             *, err_msg='', verbose=True, name='xp', dtype_check=True,
             strides_check=True, accept_error=()):
  
      Decorator that checks that NumPy and ChainerX results are equal.
  
      Args:
           err_msg(str): The error message to be printed in case of failure.
           verbose(bool): If ``True``, the conflicting values are
               appended to the error message.
           name(str): Argument name whose value is either ``numpy`` or
               ``chainerx`` module.
           dtype_check(bool): If ``True``, consistency of dtype is also checked.
               Disabling ``dtype_check`` also implies ``strides_check=False``
           strides_check(bool): If ``True``, consistency of strides is also
               checked.
           accept_error(Exception or tuple of Exception): Specify
               acceptable errors. When both NumPy test and ChainerX test raises
               the same type of errors, and the type of the errors is specified
               with this argument, the errors are ignored and not raised.
  
      Decorated test fixture is required to return the same arrays
      in the sense of :func:`numpy_chainerx_array_equal`
      (except the type of array module) even if ``xp`` is ``numpy`` or
      ``chainerx``.
  
      .. seealso:: :func:`chainerx.testing.assert_array_equal_ex`
      """
      err_msg = kwargs.pop("err_msg", "")
      verbose = kwargs.pop("verbose", True)
      name = kwargs.pop("name", "xp")
      dtype_check = kwargs.pop("dtype_check", None)
      strides_check = kwargs.pop("strides_check", None)
      accept_error = kwargs.pop("accept_error", ())
  
      def check_result_func(x, y):
          array.assert_array_equal_ex(
              x,
              y,
              err_msg,
              verbose,
              dtype_check=dtype_check,
              strides_check=strides_check,
          )
  
      return _make_decorator(check_result_func, name, accept_error)
  
imports: import functools
  import traceback
  import warnings
  import numpy
  import pytest
  import chainerx
  from chainerx.testing import array
label_desc: Use image node_id 10 for calling a global function with example usage: numpy_chainerx_array_equal() and returns: _make_decorator