code: def update_registry_for_model(self, config):
      if hasattr(self.dataset, "text_processor") and hasattr(
          self.dataset.text_processor, "get_vocab_size"
      ):
          registry.register(
              self.dataset_name + "_text_vocab_size",
              self.dataset.text_processor.get_vocab_size(),
          )
      registry.register(self.dataset_name + "_num_final_outputs", 2)
  
file_path: mmf/mmf/datasets/builders/hateful_memes/builder.py
imports: import os
  import warnings
  from mmf.common.registry import registry
  from mmf.datasets.builders.hateful_memes.dataset import HatefulMemesFeaturesDataset, HatefulMemesImageDataset
  from mmf.datasets.mmf_dataset_builder import MMFDatasetBuilder
  from mmf.utils.configuration import get_mmf_env
  from mmf.utils.file_io import PathManager
  from mmf.utils.general import get_absolute_path
label_desc: Use image node_id 5 for calling the HatefulMemesBuilder obj's underlying member method code with example usage: obj.update_registry_for_model(config) without return types