code: def test_goldstein_output(common_minima2):
      """Tests goldstein-price function output."""
      assert np.isclose(
          fx.goldstein([0, -1] * common_minima2), (3 * np.ones(3))
      ).all()
  
imports: from collections import namedtuple
  import numpy
  import pytest
  from pyswarms.utils.functions import single_obj
label_desc: Use image node_id 8 for calling a global function with example usage: test_goldstein_output(common_minima2) without return types