code: def default_encode(self, sentence):
      encodings_dict = self.tokenizer.tokenizer(
          sentence,
          truncation=True,
          max_length=self.cfg.max_seq_length,
          padding="max_length",
          return_tensors="pt",
      )
      input_ids = torch.squeeze(encodings_dict["input_ids"])
      attn_masks = torch.squeeze(encodings_dict["attention_mask"])
      return encodings_dict, input_ids, attn_masks
  
file_path: NeMo/nemo/collections/nlp/data/dialogue/dataset/dialogue_gpt_generation_dataset.py
imports: import copy
  import torch
  from nemo.collections.nlp.data.dialogue.dataset.dialogue_dataset import DialogueDataset
label_desc: Use image node_id 5 for calling the DialogueGPTGenerationDataset obj's underlying member method code with example usage: obj.default_encode(sentence) and returns: encodings_dict,  input_ids,  attn_masks