code: def test_dicyclic(n, axis):
      """Test that the dicyclic group correctly fixes the rotations of a
      prism."""
      P = _generate_prism(n, axis="XYZ".index(axis))
      for g in Rotation.create_group("D%d" % n, axis=axis):
          assert _calculate_rmsd(P, g.apply(P)) < TOL
  
imports: import pytest
  import numpy
  from numpy.testing import assert_array_almost_equal
  from scipy.spatial.transform import Rotation
  from scipy.optimize import linear_sum_assignment
  from scipy.spatial.distance import cdist
  from scipy.constants import golden
  from scipy.spatial import cKDTree
label_desc: Use image node_id 14 for calling a global function with example usage: test_dicyclic(n, axis) without return types