class_docstr: Different parallel strategies for different trial status
  
  Parameters
  ----------
  strategy_configs: dict
      Dictionary of strategy configurations. Each key should be a valid
      trial status.
  default_strategy: dict or None, optional
      Default strategy for trial status that are not defined by ``strategy_configs``.
      Default is NoParallelStrategy(), which always returns None.
class_docstr_tok: ["Different","parallel","strategies","for","different","trial","status","Parameters","--","--","--","--","--","strategy_configs",":","dict","Dictionary","of","strategy","configurations",".","Each","key","should","be","a","valid","trial","status",".","default_strategy",":","dict","or","None",",","optional","Default","strategy","for","trial","status","that","are","not","defined","by","``","strategy_configs","``",".","Default","is","NoParallelStrategy","(",")",",","which","always","returns","None","."]
code: def __init__(
      self,
      strategy_configs: dict | None = None,
      default_strategy: dict | None = None,
  ):
      super().__init__()
      if strategy_configs is None:
          strategy_configs = {
              "broken": {"of_type": "maxparallelstrategy"}
          }
  
      self.strategies = {}
      for status, strategy_config in strategy_configs.items():
          self.strategies[status] = strategy_factory.create(
              **strategy_config
          )
  
      if default_strategy is None:
          default_strategy = {"of_type": "noparallelstrategy"}
  
      self.default_strategy: ParallelStrategy = strategy_factory.create(
          **default_strategy
      )
  
imports: from __future__ import annotations
  import copy
  import logging
  from orion.algo.base.registry import Registry
  from orion.core.utils import GenericFactory
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 1 to create a new StatusBasedParallelStrategy object from inherited base classes: ParallelStrategy with example: obj = StatusBasedParallelStrategy(strategy_configs, default_strategy)