code: def add_result(title, result_dict, result_array):
      result_row = [line[0] for line in result_array]
      col_index = len(result_array[0])
      for k in result_dict.keys():
          if k not in result_row:
              result_row.append(k)
              row = ["" for _ in range(len(result_array[0]))]
              row[0] = k
              result_array.append(row)
      result_array[0].append(title)
      for k, v in result_dict.items():
          row_index = result_row.index(k)
          result_array[row_index].append("%f" % v)
  
      return result_array
  
file_path: nnabla/python/src/nnabla/utils/cli/compare_with_cpu.py
imports: import os
  from collections import OrderedDict
  import nnabla
  import nnabla.utils.load
  import numpy
  from contextlib2 import ExitStack
  from nnabla.logger import logger
  from nnabla.parameter import get_parameters
  from nnabla.utils.cli.utility import let_data_to_variable
  from nnabla.utils.progress import configure_progress, progress
label_desc: Use image node_id 1 for calling a global function with example usage: add_result(title, result_dict, result_array) and returns: result_array