code: def assert_almost_equal_inf(x, y, decimal=6, msg=None):
      x = np.atleast_1d(x)
      y = np.atleast_1d(y)
      assert_equal(np.isposinf(x), np.isposinf(y))
      assert_equal(np.isneginf(x), np.isneginf(y))
      assert_equal(np.isnan(x), np.isnan(y))
      assert_almost_equal(x[np.isfinite(x)], y[np.isfinite(y)])
  
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_
  import pytest
  import statsmodels.stats.weightstats
  from statsmodels.tools.testing import Holder
label_desc: Use image node_id 1 for calling a global function with example usage: assert_almost_equal_inf(x, y, decimal, msg) without return types