def METHOD_NAME(tmp_dir):
    model_path = str(tmp_dir.join("model").ensure(dir=1))
    vocab_path = _create_vocab(tmp_dir)
    config = {
        "model_dir": model_path,
        "data": {"source_vocabulary": vocab_path, "target_vocabulary": vocab_path},
    }
    with pytest.raises(RuntimeError, match="checkpoint"):
        ctranslate2.converters.OpenNMTTFConverter.from_config(
            config, model="TransformerBase"
        )