code: def test_shape_3d(self):
      # All possible permutations for bins of different lengths in 3D.
      bins = (
          (5, 4, 6),
          (6, 4, 5),
          (5, 6, 4),
          (4, 6, 5),
          (6, 5, 4),
          (4, 5, 6),
      )
      r = np.random.rand(10, 3)
      for b in bins:
          H, edges = histogramdd(r, b)
          assert_(H.shape == b)
  
imports: import numpy
  from numpy 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 2 for calling the TestHistogramdd obj's underlying member method code with example usage: obj.test_shape_3d() without return types