code: def test_f32_rounding(self):
      # gh-4799, check that the rounding of the edges works with float32
      x = np.array(
          [276.318359, -69.593948, 21.329449], dtype=np.float32
      )
      y = np.array(
          [5005.689453, 4481.327637, 6010.369629], dtype=np.float32
      )
      counts_hist, xedges, yedges = np.histogram2d(x, y, bins=100)
      assert_equal(counts_hist.sum(), 3.0)
  
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 9 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_f32_rounding() without return types