code: def load_text_encoder_tokens(model_path):
      """Loads the encoder tokens from a pretrained model.
  
      This method is useful when you used with a pretrained HF model.
      It will load the tokens in the yaml and then you will be able
      to instantiate any CTCBaseSearcher directly in the YAML file.
  
      Arguments
      ---------
      model_path : str, Path
          Path to the pretrained model.
  
      Returns
      -------
      list
          List of tokens.
      """
      label_encoder = TextEncoder()
      label_encoder.load(model_path)
      return list(label_encoder.lab2ind.keys())
  
imports: import ast
  import torch
  import collections
  import itertools
  import logging
  import warnings
  import speechbrain
  from speechbrain.utils.checkpoints import mark_as_saver, mark_as_loader, register_checkpoint_hooks
label_desc: Use image node_id 1 for calling a global function with example usage: load_text_encoder_tokens(model_path) and returns: list