class_docstr: Abstract class that defines various tests for high-level optimizers
  
  Whenever an optimizer implementation inherits from ABCTestOptimizer,
  you don't need to write down all tests anymore. Instead, you can just
  specify all required fixtures in the test suite.
docstr: Test if error is raised with incomplete kwargs
code: def test_obj_missing_kwargs(self, obj_with_args, optimizer, options):
      """Test if error is raised with incomplete kwargs"""
      opt = optimizer(100, 2, options=options)
      with pytest.raises(TypeError):
          # kwargs `b` is missing here
          cost, pos = opt.optimize(obj_with_args, 1000, a=1)
  
file_path: pyswarms/tests/optimizers/abc_test_discrete_optimizer.py
imports: import numpy
  import pytest
  from .abc_test_optimizer import ABCTestOptimizer
label_desc: Use image node_id 3 for calling the ABCTestDiscreteOptimizer obj's underlying member method code with example usage: obj.test_obj_missing_kwargs(obj_with_args, optimizer, options) without return types