code: def test_altered_params_json():
      """Regression test for loading altered JSON Parameters (see GH #739)."""
      pars = lmfit.Parameters()
      pars.add("a", 3.0, min=0)
      pars.add("b", 10.0, max=1000)
      pars.add("c", 20.0)
      pars.add("d", expr="c - b/a")
  
      # mangle JSON as JavaScript or others might:
      json_rep = (
          pars.dumps()
          .replace("-Infinity", "null")
          .replace("Infinity", "null")
      )
  
      new = lmfit.Parameters()
      new.loads(json_rep)
      for vname in ("a", "b", "c", "d"):
          assert new[vname].value == pars[vname].value
          assert new[vname].min == pars[vname].min
          assert new[vname].max == pars[vname].max
  
file_path: lmfit-py/tests/test_jsonutils.py
imports: from types import BuiltinFunctionType, FunctionType
  import numpy
  import pytest
  from scipy.optimize import basinhopping
  import lmfit
  from lmfit.jsonutils import decode4js, encode4js, find_importer, import_from
  from lmfit.printfuncs import alphanumeric_sort
label_desc: Use image node_id 4 for calling a global function with example usage: test_altered_params_json() without return types