code: def print_test_debug_info(testname, items_dict):
      filename = "debug_operator_onnxifi_" + testname + ".txt"
      np.set_printoptions(threshold=sys.maxsize)
      with open(filename, "w") as f:
          for key, value in items_dict.items():
              print(key, value)
              f.write("{}\n".format(key))
              f.write("{}\n".format(value))
  
file_path: pytorch/caffe2/python/fakelowp/test_utils.py
imports: import sys
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: print_test_debug_info(testname, items_dict) without return types