code: def test_report_zero_value_spercent(fitresult):
      """Verify that ZeroDivisionError in spercent calc. gives empty string."""
      fitresult.params["center"].value = 0
      fitresult.params["center"].stderr = 0.1
      report_split = fitresult.fit_report().split("\n")
      indx = [
          i for i, val in enumerate(report_split) if "center:" in val
      ][0]
      assert "%" not in report_split[indx]
      assert "%" in report_split[indx + 1]
  
      html_params_split = fitresult.params._repr_html_().split("<tr>")
      indx = [
          i
          for i, val in enumerate(html_params_split)
          if "center" in val
      ][0]
      assert "%" not in html_params_split[indx]
      assert "%" in html_params_split[indx + 1]
  
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 22 for calling a global function with example usage: test_report_zero_value_spercent(fitresult) without return types