docstr: Test if error is raised with wrong kwargs
docstr_tok: ["Test","if","error","is","raised","with","wrong","kwargs"]
code: def test_obj_incorrect_kwargs(self, obj_with_args, optimizer):
      """Test if error is raised with wrong kwargs"""
      with pytest.raises(TypeError):
          # Wrong kwargs
          cost, pos = optimizer.optimize(
              obj_with_args, 1000, c=1, d=100
          )
  
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 9 for calling the TestGeneralOptimizer obj's underlying member method code with example usage: obj.test_obj_incorrect_kwargs(obj_with_args, optimizer) without return types