The T5PreTrainedModel._shift_right method here 29 takes labels and prepares decoder_input_ids
Basically, all it does is,
takes labels -> add pad token at the beginning -> remove the eos -> decoder_input_ids