code: def test_testcase_function_errors() -> None:
      config: tp.Dict[str, tp.Any] = {
          "name": "blublu",
          "block_dimension": 3,
          "useless_variables": 6,
          "num_blocks": 2,
      }
      np.testing.assert_raises(
          ValueError, functionlib.ArtificialFunction, **config
      )  # blublu does not exist
      config.update(name="sphere")
      functionlib.ArtificialFunction(**config)  # should wor
      config.update(num_blocks=0)
      np.testing.assert_raises(
          ValueError, functionlib.ArtificialFunction, **config
      )  # num blocks should be > 0
      config.update(num_blocks=2.0)
      np.testing.assert_raises(
          TypeError, functionlib.ArtificialFunction, **config
      )  # num blocks should be > 0
      config.update(num_blocks=2, rotation=1)
      np.testing.assert_raises(
          TypeError, functionlib.ArtificialFunction, **config
      )
  
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 1 for calling a global function with example usage: test_testcase_function_errors() without return types