code: def test_confidence_warnings(data, pars):
      """Make sure the proper warnings are emitted when needed."""
      minimizer = lmfit.Minimizer(residual, pars, fcn_args=data)
      out = minimizer.minimize(method="leastsq")
  
      with pytest.warns(UserWarning) as record:
          lmfit.conf_interval(minimizer, out, maxiter=1)
          assert "maxiter=1 reached and prob" in str(record[0].message)
  
imports: import copy
  import numpy
  from numpy.testing import assert_allclose
  import pytest
  from scipy.stats import f
  import lmfit
label_desc: Use image node_id 11 for calling a global function with example usage: test_confidence_warnings(data, pars) without return types