docstr: State how the input and output samples look like
  
  This template can be changed
  
  Training example: 
      e.g. INPUT - "response: <response>" OUTPUT - "<fluent_response>"  # input_label_type = response, output_label_type = fluent_response
      e.g. INPUT - "utterance: <utterance>" OUTPUT - "<response>" # input_label_type = utterance, output_label_type = response
      e.g. INPUT - "passage: <passage> utterance: <utterance>" OUTPUT - "<response>" # input_label_type = passage+utterance, output_label_type = response
docstr_tok: ["State","how","the","input","and","output","samples","look","like","This","template","can","be","changed","Training","example",":","e.g",".","INPUT","-","``","response",":","<","response",">","''","OUTPUT","-","``","<","fluent_response",">","''","#","input_label_type","=","response",",","output_label_type","=","fluent_response","e.g",".","INPUT","-","``","utterance",":","<","utterance",">","''","OUTPUT","-","``","<","response",">","''","#","input_label_type","=","utterance",",","output_label_type","=","response","e.g",".","INPUT","-","``","passage",":","<","passage",">","utterance",":","<","utterance",">","''","OUTPUT","-","``","<","response",">","''","#","input_label_type","=","passage+utterance",",","output_label_type","=","response"]
code: def __getitem__(self, idx: int):
      """
      State how the input and output samples look like
  
      This template can be changed
  
      Training example:
          e.g. INPUT - "response: <response>" OUTPUT - "<fluent_response>"  # input_label_type = response, output_label_type = fluent_response
          e.g. INPUT - "utterance: <utterance>" OUTPUT - "<response>" # input_label_type = utterance, output_label_type = response
          e.g. INPUT - "passage: <passage> utterance: <utterance>" OUTPUT - "<response>" # input_label_type = passage+utterance, output_label_type = response
      """
      ex = self.features[idx].data
      for field in ["utterance", "system_utterance"]:
          if field in ex:
              ex["labels"][field] = ex[field]
  
      if "system_actions" in ex:
          ex["labels"][
              "system_actions"
          ] = DialogueS2SGenerationDataset.format_actions(
              self.cfg.prompt_template, ex["system_actions"]
          )
  
      input_sentence = self.format_prompt(ex)
      output_sentence = ex["labels"][self.output_label_type]
  
      _, input_ids, attn_masks = self.default_encode(input_sentence)
  
      _, labels, _ = self.default_encode(output_sentence)
  
      labels[labels == self.tokenizer.tokenizer.pad_token_id] = -100
  
      return input_ids, attn_masks, labels
  
file_path: NeMo/nemo/collections/nlp/data/dialogue/dataset/dialogue_s2s_generation_dataset.py
imports: import torch
  from nemo.collections.nlp.data.dialogue.dataset.dialogue_dataset import DialogueDataset
label_desc: Use image node_id 8 for calling the DialogueS2SGenerationDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: input_ids,  attn_masks,  labels