code: def _raise_exception_on_finish(
      task: asyncio.Task, request_tracker: "RequestTracker"
  ) -> None:
      msg = (
          "Task finished unexpectedly. This should never happen! "
          "Please open an issue on Github."
      )
      try:
          try:
              task.result()
          except asyncio.CancelledError:
              return
          except Exception as exc:
              invalidInputError(
                  False,
                  msg + " See stack trace above for the actual cause.",
              )
          invalidInputError(False, msg)
      except Exception as exc:
          request_tracker.propagate_exception(exc)
          invalidInputError(False, "")
  
imports: import asyncio
  import time
  from functools import partial
  from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Type, Union
  from bigdl.llm.vllm.config import ModelConfig
  from bigdl.llm.vllm.engine.arg_utils import AsyncEngineArgs
  from bigdl.llm.vllm.engine.llm_engine import LLMEngine
  from bigdl.llm.vllm.logger import init_logger
  from bigdl.llm.vllm.outputs import RequestOutput
  from bigdl.llm.vllm.sampling_params import SamplingParams
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: _raise_exception_on_finish(task, request_tracker) without return types