code: def get_cvat_task_id(self, project_id, create):
      filter = {"and": [{"==": [{"var": "project_id"}, project_id]}]}
      filter = urllib.parse.quote_plus(json.dumps(filter))
      tasks = requests.get(
          f"{self.api_url}/api/tasks?filter={filter}", auth=self.auth
      ).json()
  
      task_id = None
      task_name = ""
      for task in tasks["results"]:
          if task["name"].startswith(self.task_prefix):
              task_id = task["id"]
              task_name = (
                  task["name"]
                  if task["name"] > task_name
                  else task_name
              )
  
      # increment to next iteration based on latest done_xxx
      if create:
          if not task_name:
              for task in tasks["results"]:
                  if task["name"].startswith(
                      f"{self.done_prefix}_{self.task_prefix}"
                  ):
                      task_name = (
                          task["name"]
                          if task["name"] > task_name
                          else task_name
                      )
  
          version = (
              int(task_name.split("_")[-1]) + 1 if task_name else 1
          )
          task_name = f"{self.task_prefix}_{version}"
          logger.info(
              f"Creating new CVAT Task: {task_name}; project: {self.project}"
          )
  
          body = {
              "name": task_name,
              "labels": [],
              "project_id": project_id,
              "subset": "Train",
          }
          if self.segment_size:
              body["segment_size"] = self.segment_size
  
          task = requests.post(
              f"{self.api_url}/api/tasks", auth=self.auth, json=body
          ).json()
          logger.debug(task)
          task_id = task["id"]
  
      logger.debug(f"Using Task ID: {task_id}; Task Name: {task_name}")
      return task_id, task_name
  
imports: import json
  import logging
  import os
  import shutil
  import tempfile
  import time
  import urllib.parse
  import numpy
  import requests
  from PIL import Image
  from requests.auth import HTTPBasicAuth
  from monailabel.datastore.local import LocalDatastore
  from monailabel.interfaces.datastore import DefaultLabelTag
  from monailabel.utils.others.generic import get_mime_type
label_desc: Use image node_id 5 for calling the CVATDatastore obj's underlying member method code with example usage: obj.get_cvat_task_id(project_id, create) and returns: task_id,  task_name