code: def test_report_no_errorbars_with_numdifftools_no_init_value(
      fitresult,
  ):
      """No TypeError for parameters without initial value when no errorbars.
  
      Verify that for parameters without an init_value the fit_report() function
      does not raise a TypeError when comparing if a parameter is at its initial
      value (if HAS_NUMDIFFTOOLS is True and result.errorbars is False).
  
      See GitHub Issue 578: https://github.com/lmfit/lmfit-py/issues/578
  
      """
      fitresult.fit(method="nelder")
      lmfit.printfuncs.HAS_NUMDIFFTOOLS = True
      fitresult.errorbars = False
      fitresult.params["amplitude"].init_value = None
      report = fitresult.fit_report()
      assert "Warning: uncertainties could not be estimated:" in report
  
imports: import numpy
  import pytest
  import lmfit
  from lmfit import Minimizer, Parameters, ci_report, conf_interval, fit_report, report_ci, report_fit
  from lmfit.lineshapes import gaussian
  from lmfit.models import GaussianModel
  from lmfit.printfuncs import alphanumeric_sort, correl_table, fitreport_html_table, getfloat_attr, gformat
label_desc: Use image node_id 17 for calling a global function with example usage: test_report_no_errorbars_with_numdifftools_no_init_value(fitresult) without return types