code: def test_cmp_invalid_dtypes(cmp_func, numeric_dtype):
      cmp_op = _cmp_funcs[cmp_func]
      chx_cmp = getattr(chainerx, cmp_func)
  
      def check(x, y):
          with pytest.raises(chainerx.DtypeError):
              cmp_op(x, y)
  
          with pytest.raises(chainerx.DtypeError):
              chx_cmp(x, y)
  
      a = array_utils.create_dummy_ndarray(chainerx, (2, 3), "bool_")
      b = array_utils.create_dummy_ndarray(
          chainerx, (2, 3), numeric_dtype
      )
      check(a, b)
      check(b, a)
  
imports: import chainer
  import numpy
  import pytest
  import chainerx
  import chainerx.testing
  from chainerx_tests import array_utils
  from chainerx_tests import dtype_utils
  from chainerx_tests import op_utils
label_desc: Use image node_id 4 for calling a global function with example usage: test_cmp_invalid_dtypes(cmp_func, numeric_dtype) without return types