code: def test_suggest_optimizers(name: str) -> None:
      """Checks that each optimizer is able to converge when optimum is given"""
  
      if sum([ord(c) for c in name]) % 4 > 0 and name not in [
          "CMA",
          "PSO",
          "DE",
      ]:
          raise SkipTest(
              "Too expensive: we randomly skip 3/4 of these tests."
          )
  
      instrum = ng.p.Array(shape=(100,)).set_bounds(0.0, 1.0)
      instrum.set_integer_casting()
      suggestion = np.asarray(
          [0] * 17 + [1] * 17 + [0] * 66
      )  # The optimum is the suggestion.
      target = (
          lambda x: 0
          if np.all(np.asarray(x, dtype=int) == suggestion)
          else 1
      )
      suggestion_testing(name, instrum, suggestion, 7, target)
  
file_path: nevergrad/nevergrad/optimization/test_suggest.py
imports: import pytest
  import numpy
  import sys
  from unittest import SkipTest
  import nevergrad
  import nevergrad.common.typing
  from nevergrad.common import testing
  from .None import base
  from .optimizerlib import registry
label_desc: Use image node_id 3 for calling a global function with example usage: test_suggest_optimizers(name) without return types