def METHOD_NAME(basename: str) -> str:
    """Restore basename from the trash directory.
    Args:
        basename: Basename of the file in the trash directory.
    Returns:
        The path to the restored file.
    """
    trash_filename = os.path.join(_files_directory, basename)
    info_filename = _get_info_filename(basename)
    if not os.path.exists(info_filename) or (
        not os.path.exists(trash_filename) and not os.path.islink(trash_filename)
    ):
        raise FileNotFoundError(f"File for '{basename}' does not exist")
    original_filename, _ = trash_info(basename)
    if not os.path.isdir(os.path.dirname(original_filename)):
        raise FileNotFoundError(f"Original directory of '{basename}' is not accessible")
    shutil.move(trash_filename, original_filename)
    os.remove(info_filename)
    return original_filename