def task_exists(self, task_id):
        """Checks if the given task exists.

        Args:
            task_id: the task ID

        Returns:
            True/False
        """
        try:
            response = self.get(
                self.task_status_url(task_id), print_error_info=False
            )
        except requests.exceptions.HTTPError as e:
            if e.response.status_code == 404:
                return False
            else:
                raise e

        return True
Checks if the given task exists.

        Args:
            task_id: the task ID

        Returns:
            True/False
        
fiftyone/utils/cvat.py