code: def test_sphere_output_size(common_minima, targetdim):
      """Tests sphere output size."""
      assert fx.sphere(common_minima).shape == targetdim
  
imports: from collections import namedtuple
  import numpy
  import pytest
  from pyswarms.utils.functions import single_obj
label_desc: Use image node_id 15 for calling a global function with example usage: test_sphere_output_size(common_minima, targetdim) without return types