code: def assert_parameter_attributes(par, expected):
      """Assert that parameter attributes have the expected values."""
      par_attr_values = (
          par.name,
          par._val,
          par.vary,
          par.min,
          par.max,
          par._expr,
          par.brute_step,
          par.user_data,
      )
      assert par_attr_values == expected
  
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 3 for calling a global function with example usage: assert_parameter_attributes(par, expected) without return types