code: def test_default_f_compare(data, pars):
      """Test the default f_compare function: F-test."""
      minimizer = lmfit.Minimizer(residual, pars, fcn_args=(data))
      out = minimizer.leastsq()
  
      # "fixing" a parameter, keeping the chisqr the same
      out2 = copy.deepcopy(out)
      out2.nvarys = 1
      prob = lmfit.confidence.f_compare(out, out2)
      assert_allclose(prob, 0.0)
  
      # "fixing" a parameter, increasing the chisqr
      out2.chisqr = 1.0015 * out.chisqr
      prob = lmfit.confidence.f_compare(out, out2)
      assert_allclose(prob, 0.2977506)
  
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 4 for calling a global function with example usage: test_default_f_compare(data, pars) without return types