code: def _init_cache_list(self, current_batch: Batch):
      if current_batch is not None:
          self.cache_len_list = [
              (
                  req.input_len + len(req.output_ids),
                  req.max_output_len - len(req.output_ids) - 1,
              )
              for req in current_batch.reqs
          ]
      else:
          self.cache_len_list = []
  
file_path: colossalai/colossalai/legacy/inference/dynamic_batching/req_queue.py
imports: import uuid
  from typing import List
  import numpy
  from .io_struct import Batch, Req
label_desc: Use image node_id 3 for calling the ReqQueue obj's underlying member method code with example usage: obj._init_cache_list(current_batch) without return types