docstr: Creates a mapping from target labels to ids.
docstr_tok: ["Creates","a","mapping","from","target","labels","to","ids","."]
code: def map(self, text: str) -> List[int]:
      """Creates a mapping from target labels to ids."""
      tokens = []
      for word_id, word in enumerate(text.split()):
          tokens.append(self.labels_tkn2id[word])
      return tokens
  
file_path: NeMo/nemo/collections/tts/g2p/data/ctc.py
imports: import json
  import os
  from typing import List
  import torch
  from transformers import PreTrainedTokenizerBase
  from nemo.core.classes import Dataset
  from nemo.utils import logging
label_desc: Use image node_id 4 for calling the CTCG2PBPEDataset obj's underlying member method code with example usage: obj.map(text) and returns: tokens