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 functools
  from unittest import expectedFailure, skipIf
  from pytest import raises
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, slowTest, TEST_WITH_TORCHDYNAMO, TestCase, xpassIfTorchDynamo
label_desc: Use image node_id 7 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_f32_rounding() without return types