code: def get_char_tokens(text, model):
      tokens = []
      for character in text:
          if character in model.decoder.vocabulary:
              tokens.append(model.decoder.vocabulary.index(character))
          else:
              tokens.append(
                  len(model.decoder.vocabulary)
              )  # return unk token (same as blank token)
  
      return tokens
  
imports: import json
  from dataclasses import dataclass, field
  from pathlib import Path
  from typing import List, Union
  import soundfile
  import torch
  from tqdm.auto import tqdm
  from utils.constants import BLANK_TOKEN, SPACE_TOKEN, V_NEGATIVE_NUM
  from nemo.utils import logging
label_desc: Use image node_id 6 for calling a global function with example usage: get_char_tokens(text, model) and returns: tokens