code: def __init__(
      self,
      optim: OptimConf,
      parametrization: Optional[DictConfig],
  ):
      self.opt_config = optim
      self.config: Optional[DictConfig] = None
      self.launcher: Optional[Launcher] = None
      self.hydra_context: Optional[HydraContext] = None
      self.job_results = None
      self.parametrization: Dict[str, Any] = {}
      if parametrization is not None:
          assert isinstance(parametrization, DictConfig)
          self.parametrization = {
              str(x): create_nevergrad_param_from_config(y)
              for x, y in parametrization.items()
          }
      self.job_idx: Optional[int] = None
  
file_path: hydra/plugins/hydra_nevergrad_sweeper/hydra_plugins/hydra_nevergrad_sweeper/_impl.py
imports: import logging
  import math
  from typing import Any, Dict, List, MutableMapping, MutableSequence, Optional, Tuple, Union
  import nevergrad
  from hydra.core import utils
  from hydra.core.override_parser.overrides_parser import OverridesParser
  from hydra.core.override_parser.types import ChoiceSweep, IntervalSweep, Override, Transformer
  from hydra.core.plugins import Plugins
  from hydra.plugins.launcher import Launcher
  from hydra.plugins.sweeper import Sweeper
  from hydra.types import HydraContext, TaskFunction
  from omegaconf import DictConfig, ListConfig, OmegaConf
  from .config import OptimConf, ScalarConfigSpec
label_desc: Use image node_id 1 to create a new NevergradSweeperImpl object from inherited base classes: Sweeper with example: obj = NevergradSweeperImpl(optim, parametrization)