code: def test_oracle() -> None:
      func = functionlib.ArtificialFunction(
          "sphere", 5, noise_level=0.1
      )
      x = np.array([1, 2, 1, 0, 0.5])
      y1 = func(x)  # returns a float
      y2 = func(
          x
      )  # returns a different float since the function is noisy
      np.testing.assert_raises(
          AssertionError, np.testing.assert_array_almost_equal, y1, y2
      )
      reco = p.Array(init=x)
      y3 = func.evaluation_function(reco)  # returns a float
      # returns the same float (no noise for oracles + sphere function is deterministic)
      y4 = func.evaluation_function(reco)
      np.testing.assert_array_almost_equal(y3, y4)
  
imports: import typing
  import numpy
  import pytest
  from nevergrad.common import testing
  from nevergrad.parametrization import parameter
  from .None import functionlib
label_desc: Use image node_id 6 for calling a global function with example usage: test_oracle() without return types