class_docstr: Token-based (input/output is tokens) retrieval encoder-decoder model
class_docstr_tok: ["Token-based","(","input\/output","is","tokens",")","retrieval","encoder-decoder","model"]
docstr: For easy load when model is combined with other heads,
  add an extra key.
docstr_tok: ["For","easy","load","when","model","is","combined","with","other","heads",",","add","an","extra","key","."]
code: def state_dict_for_save_checkpoint(
      self, destination=None, prefix="", keep_vars=False
  ):
      """For easy load when model is combined with other heads,
      add an extra key."""
  
      state_dict_ = {}
  
      state_dict_[
          self._encoder_embedding_key
      ] = self.encoder_embedding.state_dict_for_save_checkpoint(
          destination, prefix, keep_vars
      )
      state_dict_[
          self._encoder_key
      ] = self.encoder.state_dict_for_save_checkpoint(
          destination, prefix, keep_vars
      )
      state_dict_[
          self._pre_decoder_key
      ] = self.pre_decoder.state_dict_for_save_checkpoint(
          destination, prefix, keep_vars
      )
      state_dict_[
          self._post_decoder_key
      ] = self.post_decoder.state_dict_for_save_checkpoint(
          destination, prefix, keep_vars
      )
      state_dict_[
          self._tokens_head_key
      ] = self.tokens_head.state_dict_for_save_checkpoint(
          destination, prefix, keep_vars
      )
      return state_dict_
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron/retrieval_token_level_encoder_decoder.py
imports: import torch
  from nemo.collections.nlp.modules.common.megatron.language_model import Embedding
  from nemo.collections.nlp.modules.common.megatron.layer_type import LayerType
  from nemo.collections.nlp.modules.common.megatron.megatron_decoders import get_decoder_model
  from nemo.collections.nlp.modules.common.megatron.megatron_encoders import get_encoder_model
  from nemo.collections.nlp.modules.common.megatron.module import MegatronModule
  from nemo.collections.nlp.modules.common.megatron.mup.layer import MuReadout
  from nemo.collections.nlp.modules.common.megatron.utils import ApexGuardDefaults, init_method_normal, scaled_init_method_normal
label_desc: Use image node_id 4 for calling the MegatronRetrievalTokenLevelEncoderDecoderModule obj's underlying member method code with example usage: obj.state_dict_for_save_checkpoint(destination, prefix, keep_vars) and returns: state_dict_