code: def make_symbol_list(nemo_model_file, symbols, force):
      """
      Function: make_symbol_list
  
      Create a symbol table for the input tokenizer model file.
  
      Args:
          nemo_model_file (str): Path to the NeMo model file.
          symbols (str): Path to the file where symbol list will be saved.
          force (bool): Flag to force creation of symbol list even if it already exists.
  
      Returns:
          None
  
      Raises:
          None
      """
      if os.path.isfile(symbols) and not force:
          logging.info("File " + symbols + " exists. Skipping.")
      else:
          if nemo_model_file.endswith(".nemo"):
              asr_model = nemo_asr.models.ASRModel.restore_from(
                  nemo_model_file, map_location=torch.device("cpu")
              )
          else:
              logging.warning(
                  "nemo_model_file does not end with .nemo, therefore trying to load a pretrained model with this name."
              )
              asr_model = nemo_asr.models.ASRModel.from_pretrained(
                  nemo_model_file, map_location=torch.device("cpu")
              )
  
          if isinstance(asr_model.decoder, RNNTDecoder):
              vocab_size = asr_model.decoder.blank_idx
          else:
              vocab_size = len(asr_model.decoder.vocabulary)
  
          vocab = [
              chr(idx + DEFAULT_TOKEN_OFFSET)
              for idx in range(vocab_size)
          ]
          with open(symbols, "w", encoding="utf-8") as f:
              for i, v in enumerate(vocab):
                  f.write(v + " " + str(i) + "\n")
  
imports: import argparse
  import os
  import subprocess
  import sys
  from typing import Tuple
  import kenlm_utils
  import torch
  import nemo.collections.asr
  from nemo.collections.asr.modules.rnnt import RNNTDecoder
  from nemo.collections.asr.parts.submodules.ctc_beam_decoding import DEFAULT_TOKEN_OFFSET
  from nemo.utils import logging
label_desc: Use image node_id 3 for calling a global function with example usage: make_symbol_list(nemo_model_file, symbols, force) without return types