code: def convert_gt_from_array_to_list(gt_batch, gt_batch_mask=None):
      B, L = gt_batch.shape
      gt_batch = gt_batch.astype("int")
      gts = []
      for i in range(B):
          if gt_batch_mask is None:
              l = L
          else:
              l = int(gt_batch_mask[i, :].sum())
          gts.append(gt_batch[i, :l].tolist())
      return gts
  
file_path: delta/egs/iemocap/emo/v1/local/python/helper.py
imports: import os
  import csv
  import wave
  import sys
  import numpy
  import pandas
  import glob
  from tensorflow.keras.preprocessing.text import text_to_word_sequence
label_desc: Use image node_id 4 for calling a global function with example usage: convert_gt_from_array_to_list(gt_batch, gt_batch_mask) and returns: gts