src/transformers/models/vision_text_dual_encoder/configuration_vision_text_dual_encoder.py/VisionTextDualEncoderConfig/from_vision_text_configs
class VisionTextDualEncoderConfig:    def from_vision_text_configs(cls, vision_config: PretrainedConfig, text_config: PretrainedConfig, **kwargs):
        r"""
        Instantiate a [`VisionTextDualEncoderConfig`] (or a derived class) from text model configuration and vision
        model configuration.

        Returns:
            [`VisionTextDualEncoderConfig`]: An instance of a configuration object
        """

        return cls(vision_config=vision_config.to_dict(), text_config=text_config.to_dict(), **kwargs)