class_docstr: [`TFVisionEncoderDecoderModel`] is a generic model class that will be instantiated as a transformer architecture
  with one of the base vision model classes of the library as encoder and another one of the base model classes as
  decoder when created with the [`~TFAutoModel.from_pretrained`] class method for the encoder and
  [`~TFAutoModelForCausalLM.from_pretrained`] class method for the decoder.
class_docstr_tok: ["[","`","TFVisionEncoderDecoderModel","`","]","is","a","generic","model","class","that","will","be","instantiated","as","a","transformer","architecture","with","one","of","the","base","vision","model","classes","of","the","library","as","encoder","and","another","one","of","the","base","model","classes","as","decoder","when","created","with","the","[","`","~TFAutoModel.from_pretrained","`","]","class","method","for","the","encoder","and","[","`","~TFAutoModelForCausalLM.from_pretrained","`","]","class","method","for","the","decoder","."]
code: def prepare_decoder_input_ids_from_labels(self, labels: tf.Tensor):
      return shift_tokens_right(
          labels,
          self.config.pad_token_id,
          self.config.decoder_start_token_id,
      )
  
imports: import gc
  import os
  import tempfile
  import warnings
  from typing import Optional
  import tensorflow
  from ...configuration_utils import PretrainedConfig
  from ...modeling_tf_outputs import TFBaseModelOutput, TFSeq2SeqLMOutput
  from ...modeling_tf_utils import TFCausalLanguageModelingLoss, TFPreTrainedModel, get_initializer, unpack_inputs
  from ...tf_utils import shape_list
  from ...utils import DUMMY_INPUTS, ModelOutput, add_start_docstrings, add_start_docstrings_to_model_forward, logging, replace_return_docstrings
  from ..auto.configuration_auto import AutoConfig
  from ..auto.modeling_tf_auto import TFAutoModel, TFAutoModelForCausalLM
  from .configuration_vision_encoder_decoder import VisionEncoderDecoderConfig
label_desc: Use image node_id 13 for calling the TFVisionEncoderDecoderModel obj's underlying member method code with example usage: obj.prepare_decoder_input_ids_from_labels(labels) and returns: shift_tokens_right