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