def get_project_tasks(self, project_id):
        """Returns the IDs of the tasks in the given project.

        Args:
            project_id: a project ID

        Returns:
            the list of task IDs
        """
        resp = self.get(self.project_url(project_id)).json()
        val = resp.get("tasks", [])

        if self._server_version >= Version("2.4"):
            tasks = self._get_paginated_results(val["url"])
            tasks = [x["id"] for x in tasks]
        else:
            tasks = []
            for task in val:
                if isinstance(task, int):
                    # For v2 servers, task ids are stored directly as an array
                    # of integers
                    tasks.append(task)
                else:
                    # For v1 servers, project tasks are dictionaries we need to
                    # extract "id" from
                    tasks.append(task["id"])

        return tasks
Returns the IDs of the tasks in the given project.

        Args:
            project_id: a project ID

        Returns:
            the list of task IDs
        
fiftyone/utils/cvat.py