code: def test_least_squares_solver_options(peakdata, capsys):
      """Test least_squares algorithm, pass options to solver."""
      x = peakdata[0]
      y = peakdata[1]
      mod = VoigtModel()
      params = mod.guess(y, x=x)
      solver_kws = {"verbose": 2}
      mod.fit(
          y, params, x=x, method="least_squares", fit_kws=solver_kws
      )
      captured = capsys.readouterr()
  
      assert "Iteration" in captured.out
      assert "final cost" in captured.out
  
file_path: lmfit-py/tests/test_least_squares.py
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  from scipy.sparse import bsr_matrix
  from scipy.sparse.linalg import aslinearoperator
  import lmfit
  from lmfit.models import VoigtModel
label_desc: Use image node_id 3 for calling a global function with example usage: test_least_squares_solver_options(peakdata, capsys) without return types