def METHOD_NAME(default_file):
    # When the config directory does not exist
    rmtree(str(default_file.parent))
    opts = dict(author="author", email="email", license="MPL-2.0")
    config.save({}, {**opts, "save_config": default_file})
    # it will create the directory automatically when creating the file
    assert default_file.exists()