code: def __tokenize_str(texts, tokenizer):
      tokenized_text = []
      for text in texts:
          tok_text = tokenizer.text_to_ids(text)
          tokenized_text.extend(tok_text)
      return tokenized_text
  
file_path: NeMo/scripts/asr_language_modeling/neural_rescorer/create_tarred_transformer_lm_dataset.py
imports: import argparse
  import glob
  import json
  import logging
  import os
  import tarfile
  import joblib
  import numpy
  from tqdm import tqdm
  from nemo.collections.nlp.modules.common.tokenizer_utils import get_tokenizer
label_desc: Use image node_id 2 for calling a global function with example usage: __tokenize_str(texts, tokenizer) and returns: tokenized_text