code: def text_to_ids(self, text: str) -> List[int]:
      ids = [self.vocab[token] for token in self.text_to_tokens(text)]
      return ids
  
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 10 for calling the CharTokenizer obj's underlying member method code with example usage: obj.text_to_ids(text) and returns: ids