code: def _isclose(name, expected_value, fit_value, atol, rtol):
      """isclose with error message"""
      assert np.isclose(
          expected_value, fit_value, atol=atol, rtol=rtol
      ), f"bad value for {name}: expected {expected_value}, got {fit_value}."
  
file_path: lmfit-py/tests/test_models.py
imports: import numpy
  import lmfit
  from lmfit.lineshapes import gaussian
  from lmfit.models import GaussianModel, SplineModel
label_desc: Use image node_id 1 for calling a global function with example usage: _isclose(name, expected_value, fit_value, atol, rtol) without return types