code: def test_finite_range(self):
      vals = np.random.random((100, 3))
      histogramdd(vals, range=[[0.0, 1.0], [0.25, 0.75], [0.25, 0.5]])
      assert_raises(
          ValueError,
          histogramdd,
          vals,
          range=[[0.0, 1.0], [0.25, 0.75], [0.25, np.inf]],
      )
      assert_raises(
          ValueError,
          histogramdd,
          vals,
          range=[[0.0, 1.0], [np.nan, 0.75], [0.25, 0.5]],
      )
  
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 10 for calling the TestHistogramdd obj's underlying member method code with example usage: obj.test_finite_range() without return types