docstr: Test verbose run
docstr_tok: ["Test","verbose","run"]
code: def test_verbose(self, optimizer, capsys):
      """Test verbose run"""
      optm, params = optimizer
      opt = optm(**params)
      opt.optimize(fx.sphere, iters=100)
      out = capsys.readouterr().err
      count = len(re.findall(r"pyswarms", out))
      assert count > 0
  
file_path: pyswarms/tests/optimizers/test_verbose.py
imports: import re
  import pytest
  import random
  import numpy
  from pyswarms.backend.topology import Star
  from pyswarms.utils.functions import single_obj
  from pyswarms.single import GlobalBestPSO, LocalBestPSO, GeneralOptimizerPSO
label_desc: Use image node_id 2 for calling the TestToleranceOptions obj's underlying member method code with example usage: obj.test_verbose(optimizer, capsys) without return types