code: def test_is_incoherent(
      optimizer: str, num_workers: int, expected: bool
  ) -> None:
      func = ArtificialFunction(name="sphere", block_dimension=2)
      xp = xpbase.Experiment(
          func, optimizer=optimizer, budget=300, num_workers=num_workers
      )
      np.testing.assert_equal(xp.is_incoherent, expected)
  
imports: import sys
  import contextlib
  from unittest.mock import patch
  import numpy
  import nevergrad.common.typing
  from nevergrad.common import testing
  from nevergrad.optimization import test_base
  from nevergrad.functions import ArtificialFunction
  from nevergrad.functions.base import MultiExperiment
  from nevergrad.functions.test_base import ExampleFunction
  from nevergrad.functions.test_functionlib import DESCRIPTION_KEYS
  from .None import xpbase
label_desc: Use image node_id 5 for calling a global function with example usage: test_is_incoherent(optimizer, num_workers, expected) without return types