code: def assert_ma_equal(discovered, ma_like):
      # Check MachAr-like objects same as calculated MachAr instances
      for key, value in discovered.__dict__.items():
          assert_equal(value, getattr(ma_like, key))
          if hasattr(value, "shape"):
              assert_equal(value.shape, getattr(ma_like, key).shape)
              assert_equal(value.dtype, getattr(ma_like, key).dtype)
  
imports: import warnings
  import numpy
  import pytest
  from numpy._core import finfo, iinfo
  from numpy import half, single, double, longdouble
  from numpy.testing import assert_equal, assert_, assert_raises
  from numpy._core.getlimits import _discovered_machar, _float_ma
label_desc: Use image node_id 4 for calling a global function with example usage: assert_ma_equal(discovered, ma_like) without return types