class_docstr: Class for registry object which acts as central source of truth
  for MMF
docstr: Register a processor to registry with key 'name'
  
  Args:
      name: Key with which the processor will be registered.
  
  Usage::
  
      from mmf.common.registry import registry
      from mmf.datasets.processors import BaseProcessor
  
      @registry.register_task("glove")
      class GloVe(BaseProcessor):
          ...
docstr_tok: ["Register","a","processor","to","registry","with","key","'name'","Args",":","name",":","Key","with","which","the","processor","will","be","registered",".","Usage",":",":","from","mmf.common.registry","import","registry","from","mmf.datasets.processors","import","BaseProcessor","@","registry.register_task","(","``","glove","''",")","class","GloVe","(","BaseProcessor",")",":","..."]
code: def register_processor(cls, name):
      r"""Register a processor to registry with key 'name'
  
      Args:
          name: Key with which the processor will be registered.
  
      Usage::
  
          from mmf.common.registry import registry
          from mmf.datasets.processors import BaseProcessor
  
          @registry.register_task("glove")
          class GloVe(BaseProcessor):
              ...
  
      """
  
      def wrap(func):
          from mmf.datasets.processors.processors import BaseProcessor
  
          assert issubclass(
              func, BaseProcessor
          ), "All Processor classes must inherit BaseProcessor class"
          cls.mapping["processor_name_mapping"][name] = func
          return func
  
      return wrap
  
imports: from mmf.utils.env import setup_imports
label_desc: Use image node_id 10 for calling the Registry obj's underlying member method code with example usage: obj.register_processor(cls, name) and returns: wrap, func