code: def test_histogram_bin_edges(self):
      hist, e = histogram([1, 2, 3, 4], [1, 2])
      edges = histogram_bin_edges([1, 2, 3, 4], [1, 2])
      assert_allclose(edges, e, atol=2e-15)
  
      arr = np.array([0.0, 0.0, 0.0, 1.0, 2.0, 3.0, 3.0, 4.0, 5.0])
      hist, e = histogram(arr, bins=30, range=(-0.5, 5))
      edges = histogram_bin_edges(arr, bins=30, range=(-0.5, 5))
      assert_allclose(edges, e, atol=2e-15)
  
      hist, e = histogram(arr, bins="auto", range=(0, 1))
      edges = histogram_bin_edges(arr, bins="auto", range=(0, 1))
      assert_allclose(edges, e, atol=2e-15)
  
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 29 for calling the TestHistogram obj's underlying member method code with example usage: obj.test_histogram_bin_edges() without return types