src/transformers/models/fsmt/modeling_fsmt.py/FSMTForConditionalGeneration/prepare_decoder_input_ids_from_labels
class FSMTForConditionalGeneration:    def prepare_decoder_input_ids_from_labels(self, labels: torch.Tensor):
        return shift_tokens_right(labels, self.config.pad_token_id)