code: def test_rightmost_binedge(self):
      # Test event very close to rightmost binedge. See Github issue #4266
      x = [0.9999999995]
      bins = [[0.0, 0.5, 1.0]]
      hist, _ = histogramdd(x, bins=bins)
      assert_(hist[0] == 0.0)
      assert_(hist[1] == 1.0)
      x = [1.0]
      bins = [[0.0, 0.5, 1.0]]
      hist, _ = histogramdd(x, bins=bins)
      assert_(hist[0] == 0.0)
      assert_(hist[1] == 1.0)
      x = [1.0000000001]
      bins = [[0.0, 0.5, 1.0]]
      hist, _ = histogramdd(x, bins=bins)
      assert_(hist[0] == 0.0)
      assert_(hist[1] == 0.0)
      x = [1.0001]
      bins = [[0.0, 0.5, 1.0]]
      hist, _ = histogramdd(x, bins=bins)
      assert_(hist[0] == 0.0)
      assert_(hist[1] == 0.0)
  
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 9 for calling the TestHistogramdd obj's underlying member method code with example usage: obj.test_rightmost_binedge() without return types