code: def assert_numpy_array_equal(left, right):
      left_na = pd.isna(left)
      right_na = pd.isna(right)
      np.testing.assert_array_equal(left_na, right_na)
  
      left_valid = left[~left_na]
      right_valid = right[~right_na]
      np.testing.assert_array_equal(left_valid, right_valid)
  
imports: from __future__ import annotations
  import contextlib
  import string
  import warnings
  import numpy
  import pandas
  from packaging.version import Version
  import pandas.testing
label_desc: Use image node_id 2 for calling a global function with example usage: assert_numpy_array_equal(left, right) without return types