code: def test_value_setter(parameter):
      """Tests for the value setter."""
      par, initial_attribute_values = parameter
      assert_parameter_attributes(par, initial_attribute_values)
  
      par.value = 200.0  # above maximum
      assert_allclose(par.value, 100.0)
  
      par.value = -200.0  # below minimum
      assert_allclose(par.value, -100.0)
  
      del par._expr_eval
      par.value = 10.0
      assert_allclose(par.value, 10.0)
      assert hasattr(par, "_expr_eval")
  
imports: from math import trunc
  import pickle
  import numpy
  from numpy.testing import assert_allclose
  import pytest
  import lmfit
label_desc: Use image node_id 21 for calling a global function with example usage: test_value_setter(parameter) without return types