code: def token_to_id(self, token: str):
      if token == self.blank:
          return -1
  
      if self.tokenizer is not None:
          return self.tokenizer.token_to_id(token)
      else:
          return self.reverse_map[token]
  
imports: import itertools
  import math
  from typing import Iterable, List, Optional, Tuple, Union
  import numpy
  import torch
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
  from nemo.core.classes import NeuralModule, typecheck
  from nemo.core.neural_types import LengthsType, LogprobsType, NeuralType, PredictionsType
label_desc: Use image node_id 6 for calling the _TokensWrapper obj's underlying member method code with example usage: obj.token_to_id(token) and returns: unknown, self, self