class_docstr: Truncate a sequence by returning a random crop of truncation_length tokens
code: def __init__(self, dataset, truncation_length, seed=1):
      super().__init__(dataset, truncation_length)
      self.seed = seed
      self.epoch = 0
  
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 1 to create a new RandomCropDataset object from inherited base classes: TruncateDataset with example: obj = RandomCropDataset(dataset, truncation_length, seed)