code: def test_number_of_parameters():
      expected_params = {
          ("TRANSLATION", 2): 2,
          ("TRANSLATION", 3): 3,
          ("ROTATION", 2): 1,
          ("ROTATION", 3): 3,
          ("RIGID", 2): 3,
          ("RIGID", 3): 6,
          ("SCALING", 2): 1,
          ("SCALING", 3): 1,
          ("AFFINE", 2): 6,
          ("AFFINE", 3): 12,
          ("RIGIDSCALING", 2): 5,
          ("RIGIDSCALING", 3): 9,
          ("RIGIDISOSCALING", 2): 4,
          ("RIGIDISOSCALING", 3): 7,
      }
  
      for ttype, transform in regtransforms.items():
          assert_equal(
              transform.get_number_of_parameters(),
              expected_params[ttype],
          )
  
file_path: dipy/dipy/align/tests/test_transforms.py
imports: import numpy
  from numpy.testing import assert_array_equal, assert_array_almost_equal, assert_equal, assert_raises
  from dipy.align.transforms import regtransforms, Transform
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 1 for calling a global function with example usage: test_number_of_parameters() without return types