docstr: Test if kwargs are passed properly in objfunc
docstr_tok: ["Test","if","kwargs","are","passed","properly","in","objfunc"]
code: def test_obj_with_kwargs(self, obj_with_args, optimizer):
      """Test if kwargs are passed properly in objfunc"""
      cost, pos = optimizer.optimize(obj_with_args, 1000, a=1, b=100)
      assert np.isclose(cost, 0, rtol=1e-03)
      assert np.isclose(pos[0], 1.0, rtol=1e-03)
      assert np.isclose(pos[1], 1.0, rtol=1e-03)
  
imports: import inspect
  import numpy
  import pytest
  import pyswarms.backend.topology
  from pyswarms.single import GeneralOptimizerPSO
  from pyswarms.utils.functions.single_obj import sphere
  from .abc_test_optimizer import ABCTestOptimizer
label_desc: Use image node_id 6 for calling the TestGeneralOptimizer obj's underlying member method code with example usage: obj.test_obj_with_kwargs(obj_with_args, optimizer) without return types