code: def deal_with_method(method):
      for idx in range(10000):
          if idx > 3:
              method = np.random.choice(
                  list(ng.optimizers.registry.keys())
              )
          d = np.random.choice([2, 5, 12, 24, 48, 96])
          n = np.random.choice([10, 100, 1000])
          b = np.random.choice([10, 100, 1000, 10000, 100000, 1000000])
          L = np.random.RandomState(d * 37 + n * 101 + b * 12).rand(
              n, d
          )
  
          def localdisc(x):
              points_in_interior = 0
              points_in = 0
              volume = 1
              for i in range(0, n):
                  if all(L[i] < x):
                      points_in_interior += 1
                  if all(L[i] <= x):
                      points_in += 1
              for i in range(0, len(x)):
                  volume = volume * x[i]
              disc = max(
                  volume - points_in_interior / n,
                  points_in / n - volume,
              )
              return 1.0 - disc
  
          instrum = ng.p.Array(shape=(int(d),), lower=0.0, upper=1.0)
          try:
              optim = ng.optimizers.registry[method](
                  instrum, int(b * d)
              )
              recom = optim.minimize(localdisc)
              val = localdisc(recom.value)
              assert len(recom.value) == d
              if val < 1e-9:
                  print(
                      f"We get {val} for n={n} and d={d} with x={recom.value}"
                  )
                  print(L)
              print(f"RESULT_{d}_{n}_{b}_{method}  gets {val}")
          except Exception as e:
              print(f"Failure {e} for {method}")
  
imports: import numpy
  import nevergrad
  from joblib import Parallel, delayed
label_desc: Use image node_id 1 for calling a global function with example usage: deal_with_method(method) and returns: unknown