code: def test_density_non_uniform_1d(self):
      # compare to histogram to show the results are the same
      v = np.arange(10)
      bins = np.array([0, 1, 3, 6, 10])
      hist, edges = histogram(v, bins, density=True)
      hist_dd, edges_dd = histogramdd((v,), (bins,), density=True)
      assert_equal(hist, hist_dd)
      assert_equal(edges, edges_dd[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 16 for calling the TestHistogramdd obj's underlying member method code with example usage: obj.test_density_non_uniform_1d() without return types