def METHOD_NAME(value: str) -> str:
    """Check if an argument value is an existing path.
    The difference to existing_file above is that this allows directories.
    Args:
        value: Value given to commandline option as string.
    Returns:
        Path to the file as string if it exists.
    """
    path = os.path.abspath(os.path.expanduser(value))
    if not os.path.exists(path):
        raise argparse.ArgumentTypeError(f"No path called '{value}'")
    return path