code: def test_float_constraint(val: float, expected: bool) -> None:
      param = par.Scalar(val, mutable_sigma=True)
      param.register_cheap_constraint(_return_val)
      assert param.satisfies_constraints() is expected
  
imports: import pickle
  import typing
  import pytest
  import numpy
  from nevergrad.common import errors
  from .None import parameter
label_desc: Use image node_id 15 for calling a global function with example usage: test_float_constraint(val, expected) without return types