code: def test_ad_get_norm():
      params = np.array(
          [
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              0,
              np.pi / 4,
              np.pi / 4,
              np.pi / 4,
              0,
              0,
              0,
              -np.pi / 4,
              -np.pi / 4,
              -np.pi / 4,
          ]
      ).reshape((3, 6))
      norm, _ = ra._calc_norm(params, False, "SPM")
      npt.assert_almost_equal(
          norm, np.array([18.86436316, 37.74610158, 31.29780829])
      )
      norm, _ = ra._calc_norm(params, True, "SPM")
      npt.assert_almost_equal(
          norm, np.array([0.0, 143.72192614, 173.92527131])
      )
  
file_path: nipype/nipype/algorithms/tests/test_rapidart.py
imports: import numpy
  import numpy.testing
  from ..None import rapidart
  from ...interfaces.base import Bunch
label_desc: Use image node_id 4 for calling a global function with example usage: test_ad_get_norm() without return types