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