class_docstr: Class for registry object which acts as central source of truth
  for MMF
docstr: Register an iteration_strategy to registry with key 'name'
  
  Args:
      name: Key with which the iteration_strategy will be registered.
  
  Usage::
  
      from dataclasses import dataclass
      from mmf.common.registry import registry
      from mmf.datasets.iterators import IterationStrategy
  
  
      @registry.register_iteration_strategy("my_iteration_strategy")
      class MyStrategy(IterationStrategy):
          @dataclass
          class Config:
              name: str = "my_strategy"
          def __init__(self, config, dataloader):
              ...
docstr_tok: ["Register","an","iteration_strategy","to","registry","with","key","'name'","Args",":","name",":","Key","with","which","the","iteration_strategy","will","be","registered",".","Usage",":",":","from","dataclasses","import","dataclass","from","mmf.common.registry","import","registry","from","mmf.datasets.iterators","import","IterationStrategy","@","registry.register_iteration_strategy","(","``","my_iteration_strategy","''",")","class","MyStrategy","(","IterationStrategy",")",":","@","dataclass","class","Config",":","name",":","str","=","``","my_strategy","''","def","__init__","(","self",",","config",",","dataloader",")",":","..."]
code: def register_iteration_strategy(cls, name):
      r"""Register an iteration_strategy to registry with key 'name'
  
      Args:
          name: Key with which the iteration_strategy will be registered.
  
      Usage::
  
          from dataclasses import dataclass
          from mmf.common.registry import registry
          from mmf.datasets.iterators import IterationStrategy
  
  
          @registry.register_iteration_strategy("my_iteration_strategy")
          class MyStrategy(IterationStrategy):
              @dataclass
              class Config:
                  name: str = "my_strategy"
              def __init__(self, config, dataloader):
                  ...
      """
  
      def wrap(iteration_strategy_cls):
          from mmf.datasets.iteration_strategies import (
              IterationStrategy,
          )
  
          assert issubclass(
              iteration_strategy_cls, IterationStrategy
          ), "All datamodules must inherit IterationStrategy class"
          cls.mapping["iteration_strategy_name_mapping"][
              name
          ] = iteration_strategy_cls
          return iteration_strategy_cls
  
      return wrap
  
imports: from mmf.utils.env import setup_imports
label_desc: Use image node_id 19 for calling the Registry obj's underlying member method code with example usage: obj.register_iteration_strategy(cls, name) and returns: wrap, iteration_strategy_cls