code: def _assert_arrays_equal(array1, array2):
      if array1 is None:
          assert array1 == array2
      else:
          assert array1.dtype == array2.dtype
          assert array1.shape == array2.shape
          assert array1._debug_flat_data == array2._debug_flat_data
  
imports: import chainerx
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_arrays_equal(array1, array2) without return types