code: def print_dict():
      """
      Write the java ignored messages in g_ok_java_messages into a text file for humans to read.
  
      :return: none
      """
      global g_ok_java_messages
      global g_java_messages_to_ignore_text_filename
  
      allKeys = sorted(g_ok_java_messages.keys())
  
      with open(g_java_messages_to_ignore_text_filename, "w") as ofile:
          for key in allKeys:
              for mess in g_ok_java_messages[key]:
                  ofile.write("KeyName: " + key + "\n")
                  ofile.write("IgnoredMessage: " + mess + "\n")
  
              print("KeyName: ", key)
              print("IgnoredMessage: ", g_ok_java_messages[key])
              print("\n")
  
file_path: h2o-3/scripts/addjavamessage2ignore.py
imports: import sys
  import os
  import pickle
  import copy
  import subprocess
label_desc: Use image node_id 8 for calling a global function with example usage: print_dict() without return types