docstr: Special version to make sure that num_objectives has been set before
  the proper _internal_ask_candidate, in our parent class, is called.
code: def _internal_ask_candidate(self) -> p.Parameter:
      """
      Special version to make sure that num_objectives has been set before
      the proper _internal_ask_candidate, in our parent class, is called.
      """
      if self.num_objectives == 0:
          # dummy ask i.e. not activating pymoo until num_objectives is set
          warnings.warn(
              "with this optimizer, it is more efficient to set num_objectives before the optimization begins",
              errors.NevergradRuntimeWarning,
          )
          # We need to get a datapoint that is a random point in parameter space,
          # and waste an evaluation on it.
          return self.parametrization.spawn_child()
      return super()._internal_ask_candidate()
  
imports: import functools
  import math
  import warnings
  import weakref
  import numpy
  from scipy import optimize
  import nevergrad.common.typing
  from nevergrad.parametrization import parameter
  from nevergrad.common import errors
  from .None import base
  from .base import IntOrParameter
  from .None import recaster
label_desc: Use image node_id 4 for calling the _PymooMinimizeBase obj's underlying member method code with example usage: obj._internal_ask_candidate() and returns: super, self