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 functools
  import warnings
  from unittest import skipIf
  import numpy
  from pytest import raises
  from torch.testing._internal.common_utils import run_tests, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 1 for calling a global function with example usage: assert_ma_equal(discovered, ma_like) without return types