code: def __init__(self, tgt_dicts, sampling_topk=-1, sampling_topp=-1.0):
      super().__init__(tgt_dicts)
      self.sampling_topk = sampling_topk
      self.sampling_topp = sampling_topp
  
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 ContiguousMultichannelSampling object from inherited base classes: MultichannelSearch with example: obj = ContiguousMultichannelSampling(tgt_dicts, sampling_topk, sampling_topp)