code: def _print(ground_truth_mat, vocabulary, limit=20):
      """Prints transition matrix"""
      chars = []
      for row in ground_truth_mat:
          chars.append([])
          for ch_id in row:
              if ch_id != -1:
                  chars[-1].append(vocabulary[int(ch_id)])
  
      for x in chars[:limit]:
          logging.debug(x)
  
file_path: NeMo/tools/ctc_segmentation/scripts/utils.py
imports: import logging
  import logging.handlers
  import math
  import os
  import sys
  from pathlib import PosixPath
  from typing import List, Tuple, Union
  import ctc_segmentation
  import numpy
  from tqdm import tqdm
  from nemo.collections.common.tokenizers.sentencepiece_tokenizer import SentencePieceTokenizer
label_desc: Use image node_id 3 for calling a global function with example usage: _print(ground_truth_mat, vocabulary, limit) without return types