code: def test_confidence_2d_limits(data, pars):
      """Test the 2D confidence interval calculation using limits."""
      minimizer = lmfit.Minimizer(residual, pars, fcn_args=data)
      out = minimizer.minimize(method="leastsq")
  
      lim = ((1.0e-6, 0.02), (1.0e-6, -4.0))
      cx, cy, grid = lmfit.conf_interval2d(
          minimizer, out, "a", "b", limits=lim
      )
      assert grid.shape == (10, 10)
      assert_allclose(min(cx.ravel()), 1.0e-6)
      assert_allclose(max(cx.ravel()), 0.02)
      assert_allclose(min(cy.ravel()), -4.0)
      assert_allclose(max(cy.ravel()), 1.0e-6)
  
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 14 for calling a global function with example usage: test_confidence_2d_limits(data, pars) without return types