code: def test_easom_output_size(common_minima2, targetdim):
      """Test easom output size."""
      assert fx.easom([-10, 0] * common_minima2).shape == targetdim
  
imports: from collections import namedtuple
  import numpy
  import pytest
  from pyswarms.utils.functions import single_obj
label_desc: Use image node_id 6 for calling a global function with example usage: test_easom_output_size(common_minima2, targetdim) without return types