class_docstr: A batch queue that holds the data request and the callable to batch requests to.
docstr: Set all events and reset the batch queue.
code: def _reset(self) -> None:
      """Set all events and reset the batch queue."""
      self._requests: List[DataRequest] = []
      # a list of every request ID
      self._request_idxs: List[int] = []
      self._request_lens: List[int] = []
      self._requests_completed: List[asyncio.Queue] = []
      if not docarray_v2:
          self._big_doc: DocumentArray = DocumentArray.empty()
      else:
          self._big_doc = self._request_docarray_cls()
  
      self._flush_task: Optional[Task] = None
  
file_path: jina/jina/serve/runtimes/worker/batch_queue.py
imports: import asyncio
  from asyncio import Event, Task
  from typing import Callable, Dict, List, Optional, TYPE_CHECKING
  from jina._docarray import docarray_v2
  from jina.types.request.data import DataRequest
label_desc: Use image node_id 4 for calling the BatchQueue obj's underlying member method code with example usage: obj._reset() without return types