code: def assert_iinfo_equal(i1, i2):
      # assert two iinfo instances have the same attributes
      for attr in ("bits", "min", "max"):
          assert_equal(
              getattr(i1, attr),
              getattr(i2, attr),
              f"iinfo instances {i1} and {i2} differ on {attr}",
          )
  
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 2 for calling a global function with example usage: assert_iinfo_equal(i1, i2) without return types