def METHOD_NAME(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)