code: def lunacek(x: np.ndarray) -> float:
      """Multimodal function.
  
      Based on https://www.cs.unm.edu/~neal.holts/dga/benchmarkFunction/lunacek.html.
      """
      problemDimensions = len(x)
      s = 1.0 - (1.0 / (2.0 * np.sqrt(problemDimensions + 20.0) - 8.2))
      mu1 = 2.5
      mu2 = -np.sqrt(abs((mu1**2 - 1.0) / s))
      firstSum = 0.0
      secondSum = 0.0
      thirdSum = 0.0
      for i in range(problemDimensions):
          firstSum += (x[i] - mu1) ** 2
          secondSum += (x[i] - mu2) ** 2
          thirdSum += 1.0 - np.cos(2 * np.pi * (x[i] - mu1))
      return (
          min(firstSum, 1.0 * problemDimensions + secondSum)
          + 10 * thirdSum
      )
  
imports: from math import exp, sqrt, tanh
  import numpy
  import nevergrad.common.typing
  from nevergrad.common.decorators import Registry
label_desc: Use image node_id 29 for calling a global function with example usage: lunacek(x) and returns: unknown