code: def test_confidence_bounds_reached(data, pars):
      """Check if conf_interval handles bounds correctly"""
  
      # Should work
      pars["a"].max = 0.2
      minimizer = lmfit.Minimizer(residual, pars, fcn_args=(data))
      out = minimizer.leastsq()
      out.params["a"].stderr = 1
      lmfit.conf_interval(minimizer, out, verbose=True)
  
      # Should warn (i.e,. limit < para.min)
      pars["b"].max = 2.03
      pars["b"].min = 1.97
      minimizer = lmfit.Minimizer(residual, pars, fcn_args=(data))
      out = minimizer.leastsq()
      out.params["b"].stderr = 0.005
      out.params["a"].stderr = 0.01
      with pytest.warns(UserWarning, match="Bound reached"):
          lmfit.conf_interval(minimizer, out, verbose=True)
  
      # Should warn (i.e,. limit > para.max)
      out.params["b"].stderr = 0.1
      with pytest.warns(UserWarning, match="Bound reached"):
          lmfit.conf_interval(minimizer, out, verbose=True)
  
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 8 for calling a global function with example usage: test_confidence_bounds_reached(data, pars) without return types