class_docstr: Reduce node.
  
  Reduce the sequence to a single value
class_docstr_tok: ["Reduce","node",".","Reduce","the","sequence","to","a","single","value"]
code: def __init__(
      self,
      node_repr: "NodeRepr",
      op_pool: "OperatorPool",
      in_ques: List["DataQueue"],
      out_ques: List["DataQueue"],
      time_profiler: "TimeProfiler",
  ):
      super().__init__(
          node_repr, op_pool, in_ques, out_ques, time_profiler
      )
      self._col_cache = dict(
          (key, deque()) for key in self._node_repr.inputs
      )
      self._lock = threading.Lock()
  
file_path: towhee/towhee/runtime/nodes/_reduce.py
imports: import threading
  from typing import List
  from collections import deque
  from towhee.runtime.time_profiler import Event
  from towhee.runtime.data_queue import Empty
  from .node import Node
  from ._single_input import SingleInputMixin
label_desc: Use image node_id 1 to create a new Reduce object from inherited base classes: Node, SingleInputMixin with example: obj = Reduce(node_repr, op_pool, in_ques, out_ques, time_profiler)