code: def test_bounded_scalar() -> None:
      scalar = par.Scalar(lower=0.0, upper=0.6)
      np.testing.assert_almost_equal(scalar.sigma.value, 0.1)
      np.testing.assert_almost_equal(scalar.value, 0.3)
      # partial
      with pytest.raises(ValueError):
          scalar = par.Scalar(lower=1.0)
  
imports: import pickle
  import typing
  import pytest
  import numpy
  from nevergrad.common import errors
  from .None import parameter
label_desc: Use image node_id 19 for calling a global function with example usage: test_bounded_scalar() without return types