code: def test_value_and_point() -> None:
      param = ng.p.Scalar(init=12.0)
      v = utils.MultiValue(param, 4, reference=param)
      np.testing.assert_equal(v.count, 1)
      v.add_evaluation(3)
      np.testing.assert_equal(v.count, 2)
      np.testing.assert_equal(v.mean, 3.5)
      np.testing.assert_equal(v.square, 12.5)
      np.testing.assert_almost_equal(v.variance, 0.3536, decimal=4)
      assert (
          v.optimistic_confidence_bound < v.pessimistic_confidence_bound
      )
      assert v.get_estimation("optimistic") < v.get_estimation(
          "pessimistic"
      )
      assert v.get_estimation("minimum") == 3
      np.testing.assert_raises(
          NotImplementedError, v.get_estimation, "blublu"
      )
      repr(v)
      assert v.parameter.value == 12
  
file_path: nevergrad/nevergrad/optimization/test_utils.py
imports: import pickle
  import pytest
  import numpy
  import nevergrad
  from nevergrad.common import testing
  from .test_base import CounterFunction
  from .None import experimentalvariants
  from .None import utils
label_desc: Use image node_id 1 for calling a global function with example usage: test_value_and_point() without return types