code: def assert_array_approx_equal(
      x, y, decimal=6, err_msg="", verbose=True
  ):
      """
      Checks the equality of two masked arrays, up to given number odecimals.
  
      The equality is checked elementwise.
  
      """
  
      def compare(x, y):
          "Returns the result of the loose comparison between x and y)."
          return approx(x, y, rtol=10.0**-decimal)
  
      assert_array_compare(
          compare,
          x,
          y,
          err_msg=err_msg,
          verbose=verbose,
          header="Arrays are not almost equal",
      )
  
imports: from __future__ import division, absolute_import, print_function
  import operator
  import numpy
  from numpy import ndarray, float_
  import numpy.core.umath
  import numpy.testing
  from numpy.testing import assert_, assert_allclose, assert_array_almost_equal_nulp, assert_raises, build_err_msg
  from .core import mask_or, getmask, masked_array, nomask, masked, filled
  from unittest import TestCase
label_desc: Use image node_id 11 for calling a global function with example usage: assert_array_approx_equal(x, y, decimal, err_msg, verbose) and returns: approx