docstr: Test if error is raised with incomplete kwargs
docstr_tok: ["Test","if","error","is","raised","with","incomplete","kwargs"]
code: def test_obj_missing_kwargs(self, obj_with_args, optimizer):
      """Test if error is raised with incomplete kwargs"""
      with pytest.raises(TypeError):
          # kwargs `b` is missing here
          cost, pos = optimizer.optimize(obj_with_args, 1000, a=1)
  
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 8 for calling the TestGeneralOptimizer obj's underlying member method code with example usage: obj.test_obj_missing_kwargs(obj_with_args, optimizer) without return types