code: def test_inf_edges(self):
      # Test using +/-inf bin edges works. See #1788.
      with np.errstate(invalid="ignore"):
          x = np.arange(6).reshape(3, 2)
          expected = np.array([[1, 0], [0, 1], [0, 1]])
          h, e = np.histogramdd(x, bins=[3, [-np.inf, 2, 10]])
          assert_allclose(h, expected)
          h, e = np.histogramdd(x, bins=[3, np.array([-1, 2, np.inf])])
          assert_allclose(h, expected)
          h, e = np.histogramdd(x, bins=[3, [-np.inf, 3, np.inf]])
          assert_allclose(h, expected)
  
imports: import numpy
  from numpy import histogram, histogramdd, histogram_bin_edges
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_allclose, assert_array_max_ulp, assert_raises_regex, suppress_warnings
  from numpy.testing._private.utils import requires_memory
  import pytest
label_desc: Use image node_id 8 for calling the TestHistogramdd obj's underlying member method code with example usage: obj.test_inf_edges() without return types