src/transformers/models/vision_encoder_decoder/modeling_vision_encoder_decoder.py/VisionEncoderDecoderModel/get_encoder
class VisionEncoderDecoderModel:    def get_encoder(self):
        return self.encoder