docstr: Decoding process
docstr_tok: ["Decoding","process"]
code: def _decode_batch(self, batch: Batch):
      """
      Decoding process
      """
      ans = self.engine._decode_batch(batch.batch_id)
      req_to_out_token_id = ans
      self._add_token_id_to_req(batch, req_to_out_token_id)
      has_new_finished_req = batch.mark_finished_req(
          self.eos_id, self.engine.max_output_len
      )
      outputs = self._handle_finish_req(batch, has_new_finished_req)
      return has_new_finished_req, outputs
  
file_path: ColossalAI/colossalai/legacy/inference/async_manager.py
imports: from typing import List
  from .dynamic_batching.io_struct import Batch, Req, RequestOutput
  from .manager import DynamicBatchManager
  from .tensor_parallel import TPInferEngine
label_desc: Use image node_id 4 for calling the Async_DynamicBatchManager obj's underlying member method code with example usage: obj._decode_batch(batch) and returns: has_new_finished_req,  outputs