code: def test_parameters_add():
      """Tests for adding a Parameter to the Parameters class."""
      pars = lmfit.Parameters()
      pars_from_par = lmfit.Parameters()
  
      pars.add("a")
      exp_attr_values_A = (
          "a",
          -np.inf,
          True,
          -np.inf,
          np.inf,
          None,
          None,
          None,
      )
      assert_parameter_attributes(pars["a"], exp_attr_values_A)
  
      pars_from_par.add(lmfit.Parameter("a"))
      assert pars_from_par == pars
  
      pars.add(
          "b", value=1, vary=False, min=-5.0, max=5.0, brute_step=0.1
      )
      exp_attr_values_B = ("b", 1.0, False, -5.0, 5.0, None, 0.1, None)
      assert_parameter_attributes(pars["b"], exp_attr_values_B)
  
      pars_from_par.add(
          lmfit.Parameter(
              "b",
              value=1,
              vary=False,
              min=-5.0,
              max=5.0,
              brute_step=0.1,
          )
      )
      assert pars_from_par == pars
  
imports: from copy import copy, deepcopy
  import os
  import pickle
  import numpy
  from numpy.testing import assert_allclose
  import pytest
  import lmfit
  from lmfit.models import VoigtModel
label_desc: Use image node_id 21 for calling a global function with example usage: test_parameters_add() without return types