code: def status(
      method: str, all: bool = False, check_if_running: bool = False
  ):
      batch_process = processes(method)
      batch_tasks = tasks(method)
  
      if check_if_running:
          if len(batch_process) == 0:
              description = f"No {method.capitalize()} Tasks are currently Running"
              logger.debug(description)
              return None, description
          task_id = next(iter(batch_process))
          return [
              task for task in batch_tasks if task["id"] == task_id
          ][0], None
  
      task = batch_tasks[-1] if len(batch_tasks) else None
      if task is None:
          description = f"No {method.capitalize()} Tasks Found"
          logger.debug(description)
          return None, description
  
      ret = batch_tasks if all else task
      return ret, None
  
imports: import logging
  from monailabel.interfaces.utils.app import app_instance
  from monailabel.utils.async_tasks.utils import processes, run_background_task, stop_background_task, tasks
label_desc: Use image node_id 2 for calling the AsyncTask obj's underlying member method code with example usage: obj.status(method, all, check_if_running) and returns: ret,  None, unknown,  None, None,  description, None,  description