code: def repeated_basic(
      seed: tp.Optional[int] = None,
  ) -> tp.Iterator[Experiment]:
      """Test settings"""
      seedg = create_seed_generator(seed)
      function = ArtificialFunction(
          name="sphere", block_dimension=2, noise_level=1
      )
      optims: tp.List[tp.Union[str, ConfiguredOptimizer]] = [
          "OnePlusOne",
          optimizers.DifferentialEvolution(),
      ]
      for _ in range(5):
          for optim in optims:
              yield Experiment(
                  function,
                  optimizer=optim,
                  num_workers=2,
                  budget=4,
                  seed=next(seedg),
              )
  
imports: import typing
  import numpy
  from nevergrad import optimizers
  from nevergrad.optimization.base import ConfiguredOptimizer
  from nevergrad.optimization import experimentalvariants
  from nevergrad.functions import ArtificialFunction
  from .xpbase import registry
  from .xpbase import create_seed_generator
  from .xpbase import Experiment
label_desc: Use image node_id 2 for calling a global function with example usage: repeated_basic(seed) without return types