code: def test_dimensions(self):
      # 1D
      img = scipy.rand(10)
      template = scipy.random.randint(0, 2, (3))
      result = ght(img, template)
      self.assertEqual(
          result.ndim,
          1,
          "Computing ght with one-dimensional input data failed.",
      )
      # 2D
      img = scipy.rand(10, 11)
      template = scipy.random.randint(0, 2, (3, 4))
      result = ght(img, template)
      self.assertEqual(
          result.ndim,
          2,
          "Computing ght with two-dimensional input data failed.",
      )
      # 3D
      img = scipy.rand(10, 11, 12)
      template = scipy.random.randint(0, 2, (3, 4, 5))
      result = ght(img, template)
      self.assertEqual(
          result.ndim,
          3,
          "Computing ght with three-dimensional input data failed.",
      )
      # 4D
      img = scipy.rand(10, 11, 12, 13)
      template = scipy.random.randint(0, 2, (3, 4, 5, 6))
      result = ght(img, template)
      self.assertEqual(
          result.ndim,
          4,
          "Computing ght with four-dimensional input data failed.",
      )
      # 5D
      img = scipy.rand(3, 4, 3, 4, 3)
      template = scipy.random.randint(0, 2, (2, 2, 2, 2, 2))
      result = ght(img, template)
      self.assertEqual(
          result.ndim,
          5,
          "Computing ght with five-dimensional input data failed.",
      )
  
file_path: medpy/tests/filter_/houghtransform.py
imports: import unittest
  import scipy
  from medpy.filter import ght, template_sphere, template_ellipsoid
label_desc: Use image node_id 11 for calling the TestHoughTransform obj's underlying member method code with example usage: obj.test_dimensions() without return types