class_docstr: This class is a Registry that stores information about the Training Strategies.
  
  The Strategies are mapped to strings. These strings are names that identify
  a strategy, e.g., "deepspeed". It also returns Optional description and
  parameters to initialize the Strategy, which were defined durng the
  registration.
  
  The motivation for having a StrategyRegistry is to make it convenient
  for the Users to try different Strategies by passing just strings
  to the strategy flag to the Trainer.
  
  Example::
  
      @StrategyRegistry.register("lightning", description="Super fast", a=1, b=True)
      class LightningStrategy:
          def __init__(self, a, b):
              ...
  
      or
  
      StrategyRegistry.register("lightning", LightningStrategy, description="Super fast", a=1, b=True)
docstr: Calls the registered strategy with the required parameters and returns the strategy object.
  
  Args:
      name (str): the name that identifies a strategy, e.g. "deepspeed_stage_3"
docstr_tok: ["Calls","the","registered","strategy","with","the","required","parameters","and","returns","the","strategy","object",".","Args",":","name","(","str",")",":","the","name","that","identifies","a","strategy",",","e.g",".","``","deepspeed_stage_3","''"]
code: def get(self, name: str, default: Optional[Any] = None) -> Any:
      """Calls the registered strategy with the required parameters and returns the strategy object.
  
      Args:
          name (str): the name that identifies a strategy, e.g. "deepspeed_stage_3"
  
      """
      if name in self:
          data = self[name]
          return data["strategy"](**data["init_params"])
  
      if default is not None:
          return default
  
      err_msg = "'{}' not found in registry. Available names: {}"
      available_names = ", ".join(sorted(self.keys())) or "none"
      raise KeyError(err_msg.format(name, available_names))
  
file_path: pytorch-lightning/src/lightning/fabric/strategies/registry.py
imports: from typing import Any, Callable, Dict, List, Optional
  from typing_extensions import override
label_desc: Use image node_id 2 for calling the _StrategyRegistry obj's underlying member method code with example usage: obj.get(name, default) and returns: data, default