code: def text_to_tokens(self, text: str):
      if self.tokenizer is not None:
          return self.tokenizer.text_to_tokens(text)
      else:
          return list(text)
  
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 7 for calling the _TokensWrapper obj's underlying member method code with example usage: obj.text_to_tokens(text) and returns: self, list