src/transformers/models/t5/modeling_t5.py/T5ForConditionalGeneration/prepare_decoder_input_ids_from_labels
class T5ForConditionalGeneration:    def prepare_decoder_input_ids_from_labels(self, labels: torch.Tensor):
        return self._shift_right(labels)