class_docstr: Class for registry object which acts as central source of truth
  for MMF
docstr: Register a dataset builder to registry with key 'name'
  
  Args:
      name: Key with which the metric will be registered.
  
  Usage::
  
      from mmf.common.registry import registry
      from mmf.datasets.base_dataset_builder import BaseDatasetBuilder
  
  
      @registry.register_builder("vqa2")
      class VQA2Builder(BaseDatasetBuilder):
          ...
docstr_tok: ["Register","a","dataset","builder","to","registry","with","key","'name'","Args",":","name",":","Key","with","which","the","metric","will","be","registered",".","Usage",":",":","from","mmf.common.registry","import","registry","from","mmf.datasets.base_dataset_builder","import","BaseDatasetBuilder","@","registry.register_builder","(","``","vqa2","''",")","class","VQA2Builder","(","BaseDatasetBuilder",")",":","..."]
code: def register_builder(cls, name):
      r"""Register a dataset builder to registry with key 'name'
  
      Args:
          name: Key with which the metric will be registered.
  
      Usage::
  
          from mmf.common.registry import registry
          from mmf.datasets.base_dataset_builder import BaseDatasetBuilder
  
  
          @registry.register_builder("vqa2")
          class VQA2Builder(BaseDatasetBuilder):
              ...
  
      """
  
      def wrap(builder_cls):
          from mmf.datasets.base_dataset_builder import (
              BaseDatasetBuilder,
          )
  
          assert issubclass(
              builder_cls, BaseDatasetBuilder
          ), "All builders must inherit BaseDatasetBuilder class"
          cls.mapping["builder_name_mapping"][name] = builder_cls
          return builder_cls
  
      return wrap
  
imports: from mmf.utils.env import setup_imports
label_desc: Use image node_id 2 for calling the Registry obj's underlying member method code with example usage: obj.register_builder(cls, name) and returns: wrap, builder_cls