code: def get_n_tokens_in_sentence(self, sentence):
      encodings_dict = self.tokenizer.tokenizer(
          sentence,
          truncation=True,
          max_length=self.cfg.max_seq_length,
          padding=False,
          return_tensors="pt",
      )
      output = torch.squeeze(encodings_dict["input_ids"])
      return len(output) if len(output.size()) > 0 else 0
  
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 4 for calling the DialogueGPTGenerationDataset obj's underlying member method code with example usage: obj.get_n_tokens_in_sentence(sentence) and returns: unknown