code: def test_single_reduction(name):
      g = Rotation.create_group(name)
      f = g[-1].reduce(g)
      assert_array_almost_equal(f.magnitude(), 0)
      assert f.as_quat().shape == (4,)
  
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 20 for calling a global function with example usage: test_single_reduction(name) without return types