def split_config(config_path, download):
    """Gets model, data iterator and a task name from the configuration file.
    
    Args:
        config_path: Path to the model configuration file.
        download: If True, the model will be downloaded from the DeepPavlov server.
    """

    config = parse_config(config_path)
    data = read_data_by_config(config)
    iterator = get_iterator_from_config(config, data)
    task_name = config['dataset_reader']['name']
    if task_name == 'mnli':
        task_name = 'mnli-m' if config['dataset_reader']['valid'] == 'validation_matched' else 'mnli-mm'
    data_gen = iterator.gen_batches(1, data_type='test', shuffle=False)
    model = build_model(config, download=download)
    return model, data_gen, task_name
Gets model, data iterator and a task name from the configuration file.
    
    Args:
        config_path: Path to the model configuration file.
        download: If True, the model will be downloaded from the DeepPavlov server.
    
deeppavlov/utils/benchmarks/benchmarks.py