code: def test_constraints(name: str) -> None:
      param = (
          par.Scalar(12.0)
          .set_mutation(sigma=2)
          .set_bounds(method=name, lower=-100, upper=100)
      )
      param.set_standardized_data(
          param.get_standardized_data(reference=param)
      )
      np.testing.assert_approx_equal(
          param.value, 12, err_msg="Back and forth did not work"
      )
      param.set_standardized_data(np.array([100000.0]))
      if param.satisfies_constraints():
          # bouncing works differently from others
          np.testing.assert_approx_equal(
              param.value,
              100 if name != "bouncing" else -100,
              significant=3,
              err_msg="Constraining did not work",
          )
  
imports: import pickle
  import typing
  import pytest
  import numpy
  from nevergrad.common import errors
  from .None import parameter
label_desc: Use image node_id 16 for calling a global function with example usage: test_constraints(name) without return types