def path_in_book(path):
    """
    A filter function that checks if a given path is part of the book.
    """
    if ".ipynb_checkpoints" in str(path):
        return False
    if "README.md" in str(path):
        return False
    return True