class_docstr: Base class for loading text-to-text manifests
  Map-style and Iterable datasets should inherit this class
class_docstr_tok: ["Base","class","for","loading","text-to-text","manifests","Map-style","and","Iterable","datasets","should","inherit","this","class"]
code: def _tts_text_to_tokens(
      self, text: str, normalize=True
  ) -> np.ndarray:
      if normalize:
          text = self.tts_normalizer.normalize(
              text, **self.tts_normalizer_kwargs
          )
      tokens = self.tts_parser(text)
      return np.asarray(tokens)
  
imports: from __future__ import annotations
  import concurrent.futures
  import copy
  import gc
  import json
  import math
  import random
  from pathlib import Path
  from typing import Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Set, Union
  import numpy
  import torch
  import torch.utils.data
  from torch.nn.utils.rnn import pad_sequence
  from tqdm.auto import tqdm
  from nemo.collections.asr.data.audio_to_text import _speech_collate_fn
  from nemo.collections.common.tokenizers import TokenizerSpec
  from nemo.core.classes import Dataset, IterableDataset
  from nemo.utils import logging
label_desc: Use image node_id 3 for calling the TextToTextDatasetBase obj's underlying member method code with example usage: obj._tts_text_to_tokens(text, normalize) and returns: np