class_docstr: Truncate a sequence by returning the first truncation_length tokens
code: def sizes(self):
      return np.minimum(self.dataset.sizes, self.truncation_length)
  
file_path: fairseq/fairseq/data/shorten_dataset.py
imports: import numpy
  from fairseq.data import data_utils
  from .None import BaseWrapperDataset
label_desc: Use image node_id 3 for calling the TruncateDataset obj's underlying member method code with example usage: obj.sizes() and returns: np