code: def status(all: bool = False, check_if_running: bool = False):
      res, detail = AsyncTask.status("scoring", all, check_if_running)
      if res is None:
          raise HTTPException(status_code=404, detail=detail)
      return res
  
file_path: MONAILabel/monailabel/endpoints/scoring.py
imports: import logging
  from typing import Optional
  import torch
  from fastapi import APIRouter, Depends, HTTPException
  from monailabel.config import RBAC_ANNOTATOR, RBAC_USER, settings
  from monailabel.endpoints.user.auth import RBAC, User
  from monailabel.interfaces.app import MONAILabelApp
  from monailabel.interfaces.utils.app import app_instance
  from monailabel.utils.async_tasks.task import AsyncTask
label_desc: Use image node_id 1 for calling a global function with example usage: status(all, check_if_running) and returns: res