def METHOD_NAME(self, model_name_and_config):
    model_name, config = model_name_and_config
    model = MODEL_MAPPING[config.__class__].from_pretrained(model_name, config=config)
    return config, model