code: def token_to_id(self, token: str) -> int:
      return self.vocab[token]
  
imports: import json
  import os
  import warnings
  from collections import Counter
  from enum import Enum
  from pathlib import Path
  from typing import Dict, List, NewType, Optional, Union
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
label_desc: Use image node_id 13 for calling the CharTokenizer obj's underlying member method code with example usage: obj.token_to_id(token) and returns: self