code: def test_object_array_of_0d(self):
      # gh-7864
      assert_raises(
          ValueError,
          histogram,
          [np.array(0.4) for i in range(10)] + [-np.inf],
      )
      assert_raises(
          ValueError,
          histogram,
          [np.array(0.4) for i in range(10)] + [np.inf],
      )
  
      # these should not crash
      np.histogram(
          [np.array(0.5) for i in range(10)] + [0.500000000000001]
      )
      np.histogram([np.array(0.5) for i in range(10)] + [0.5])
  
imports: import numpy
  from numpy.lib.histograms 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 22 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_object_array_of_0d() without return types