code: def test_cmp_invalid_shapes(cmp_func, a_shape, b_shape):
      cmp_op = _cmp_funcs[cmp_func]
      chx_cmp = getattr(chainerx, cmp_func)
  
      def check(x, y):
          with pytest.raises(chainerx.DimensionError):
              cmp_op(x, y)
  
          with pytest.raises(chainerx.DimensionError):
              chx_cmp(x, y)
  
      a = array_utils.create_dummy_ndarray(chainerx, a_shape, "float32")
      b = array_utils.create_dummy_ndarray(chainerx, b_shape, "float32")
      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 3 for calling a global function with example usage: test_cmp_invalid_shapes(cmp_func, a_shape, b_shape) without return types