Opens a collection of tables for probing. See
    :class:`~chess.syzygy.Tablebase`.

    .. note::

        Generally probing requires tablebase files for the specific
        material composition, **as well as** tablebase files with less pieces.
        This is important because 6-piece and 5-piece files are often
        distributed seperately, but are both required for 6-piece positions.
        Use :func:`~chess.syzygy.Tablebase.add_directory()` to load
        tables from additional directories.

def open_tablebase(directory: PathLike, *, load_wdl: bool = True, load_dtz: bool = True, max_fds: Optional[int] = 128, VariantBoard: Type[chess.Board] = chess.Board) -> Tablebase:
    """
    Opens a collection of tables for probing. See
    :class:`~chess.syzygy.Tablebase`.

    .. note::

        Generally probing requires tablebase files for the specific
        material composition, **as well as** tablebase files with less pieces.
        This is important because 6-piece and 5-piece files are often
        distributed seperately, but are both required for 6-piece positions.
        Use :func:`~chess.syzygy.Tablebase.add_directory()` to load
        tables from additional directories.
    """
    tables = Tablebase(max_fds=max_fds, VariantBoard=VariantBoard)
    tables.add_directory(directory, load_wdl=load_wdl, load_dtz=load_dtz)
    return tables