def METHOD_NAME(dirpath: str | Path):
    """Check if the directory is a directory."""
    real_dir = Path(dirpath)
    if real_dir.exists() and real_dir.METHOD_NAME():
        return real_dir
    raise argparse.ArgumentTypeError(f"{dir} is not a directory.")