class_docstr: Args:
code: def __init__(self, consensus_type, dim=1):
      super().__init__()
      self.consensus_type = consensus_type
      self.dim = dim
      self.shape = None
  
file_path: towhee/towhee/models/utils/basic_ops.py
imports: import torch
label_desc: Use image node_id 1 to create a new SegmentConsensus object from inherited base classes: torch.nn with example: obj = SegmentConsensus(consensus_type, dim)