code: def test_blocks(split: bool) -> None:
      func = functionlib.ArtificialFunction(
          "sphere", block_dimension=5, split=split, num_blocks=2
      )
      assert func.dimension == 10
      param = func.parametrization
      y = func(*param.args, **param.kwargs)
      y2 = func.evaluation_function(param)  # returns a float
      t = func.compute_pseudotime((param.args, param.kwargs), y2)
      assert t > 0
      np.testing.assert_array_almost_equal(y, y2)
  
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 7 for calling a global function with example usage: test_blocks(split) without return types