code: def test_compute_pseudotime() -> None:
      x = np.array([2.0, 2])
      func = functionlib.ArtificialFunction("sphere", 2)
      np.testing.assert_equal(
          func.compute_pseudotime(((x,), {}), 3), 1.0
      )
      np.random.seed(12)
      func = functionlib.ArtificialFunction("DelayedSphere", 2)
      np.testing.assert_almost_equal(
          func.compute_pseudotime(((x,), {}), 3), 0.00025003021607278633
      )
      # check minimum
      np.random.seed(None)
      func = functionlib.ArtificialFunction("DelayedSphere", 2)
      func([0, 0])  # trigger init
      x = func.transform_var._transforms[0].translation
      np.testing.assert_equal(func(x), 0)
      np.testing.assert_equal(func.compute_pseudotime(((x,), {}), 0), 0)
  
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 11 for calling a global function with example usage: test_compute_pseudotime() without return types