code: def __init__(self, tgt_dicts):
      super().__init__(tgt_dicts)
      self.constraint_states = None
  
imports: from typing import Dict, Optional
  import torch
  import torch.nn
  from torch import Tensor
label_desc: Use image node_id 1 to create a new ContiguousMultichannelBeamSearch object from inherited base classes: MultichannelSearch with example: obj = ContiguousMultichannelBeamSearch(tgt_dicts)