def METHOD_NAME(file):
    """
    Check whether the file exists.
    :param file: the Path of file.
    :return:
    """
    if file is not None and not file.exists():
        logger.error(f"{str(file)} is not exist, please check!")
        raise FileExistsError