from pathlib import Path


def get_parent_dir(path: Path) -> Path:
    """
    Get the parent directory of the given path.
    :param path: a Path
    :return: a Path
    """
    return path.parents[0]