code: def test_numpy_chainerx_array_equal_fail_both_raise(xp):
      if xp is numpy:
          raise TypeError("NumPy error")
      else:
          raise TypeError("ChainerX error")
  
imports: import numpy
  import pytest
  import chainerx
  import chainerx.testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_numpy_chainerx_array_equal_fail_both_raise(xp) without return types