# Copyright (c) Facebook, Inc. and its affiliates.## This source code is licensed under the MIT license found in the# LICENSE file in the root directory of this source tree.from.importBaseWrapperDatasetclassOffsetTokensDataset(BaseWrapperDataset):def__init__(self,dataset,offset):super().__init__(dataset)self.offset=offsetdef__getitem__(self,idx):returnself.dataset[idx]+self.offset