code: def test_bin_edge_cases(self):
      # Ensure that floating-point computations correctly place edge cases.
      arr = np.array([337, 404, 739, 806, 1007, 1811, 2012])
      hist, edges = np.histogram(arr, bins=8296, range=(2, 2280))
      mask = hist > 0
      left_edges = edges[:-1][mask]
      right_edges = edges[1:][mask]
      for x, left, right in zip(arr, left_edges, right_edges):
          assert_(x >= left)
          assert_(x < right)
  
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 18 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_bin_edge_cases() without return types