def METHOD_NAME(
    three_experiments_branch_same_name_trials_benchmarks,
    testing_helpers,
    given_version,
    expected_version,
    nb_trials,
    nb_child_trials,
    algo_state,
    tmp_path,
):
    """Test dump experiment test_single_exp"""
    dump_path = f"{tmp_path}/dump.pkl"
    try:
        command = f"db dump -n test_single_exp -o {dump_path}"
        if given_version is not None:
            command += f" -v {given_version}"
        execute(command)
        assert os.path.isfile(dump_path)
        dumped_db = PickledDB(dump_path)
        testing_helpers.check_unique_import(
            dumped_db,
            "test_single_exp",
            expected_version,
            nb_trials=nb_trials,
            nb_child_trials=nb_child_trials,
            algo_state=algo_state,
        )
    finally:
        clean_dump(dump_path)