code: def token_to_id(self, token):
      if token in self.special_token_to_id:
          return self.special_token_to_id[token]
      else:
          return token
  
imports: from typing import Dict, List, Optional, Union
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
label_desc: Use image node_id 8 for calling the ByteLevelTokenizer obj's underlying member method code with example usage: obj.token_to_id(token) and returns: self, token