code: def test_group_symmetry(name, size):
      g = Rotation.create_group(name)
      q = np.concatenate((-g.as_quat(), g.as_quat()))
      distance = np.sort(cdist(q, q))
      deltas = np.max(distance, axis=0) - np.min(distance, axis=0)
      assert (deltas < TOL).all()
  
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 18 for calling a global function with example usage: test_group_symmetry(name, size) without return types