code: def test_algebraic_constraints(minimizer):
      """Test algebraic constraints."""
      result = minimizer.minimize(method="leastsq")
  
      pfit = result.params
      assert pfit["cen_l"].value == 1.5 + pfit["cen_g"].value
      assert (
          pfit["amp_l"].value
          == pfit["amp_tot"].value - pfit["amp_g"].value
      )
      assert pfit["wid_l"].value == 2.0 * pfit["wid_g"].value
  
file_path: lmfit-py/tests/test_algebraic_constraint.py
imports: import numpy
  import pytest
  from lmfit import Minimizer, Model, Parameters
  from lmfit.lineshapes import gaussian, lorentzian
label_desc: Use image node_id 2 for calling a global function with example usage: test_algebraic_constraints(minimizer) without return types