code: def __init__(self, output_num_tokens, eps=1e-6):
      super().__init__()
      self.eps = eps
      self.output_num_tokens = output_num_tokens
  
imports: import torch
  import torch.nn.functional
  from torch.nn.utils.rnn import pad_sequence
  from torch import nn, einsum
  from einops import rearrange, repeat
  from einops.layers.torch import Rearrange
label_desc: Use image node_id 1 to create a new AdaptiveTokenSampling object from inherited base classes: nn with example: obj = AdaptiveTokenSampling(output_num_tokens, eps)