code: def add_to_dict(val, key, message_dict):
      """
      Add new key, val (ignored java message) to dict message_dict.
  
      Parameters
      ----------
  
      val :  Str
         contains ignored java messages.
      key :  Str
          key for the ignored java messages.  It can be "general" or any R or Python unit
          test names
      message_dict :  dict
          stored ignored java message for key ("general" or any R or Python unit test names)
  
      :return: none
      """
      allKeys = message_dict.keys()
      if len(val) > 0:  # got a valid message here
          if (key in allKeys) and (val not in message_dict[key]):
              message_dict[key].append(
                  val
              )  # only include this message if it has not been added before
          else:
              message_dict[key] = [val]
  
file_path: h2o-3/scripts/addjavamessage2ignore.py
imports: import sys
  import os
  import pickle
  import copy
  import subprocess
label_desc: Use image node_id 6 for calling a global function with example usage: add_to_dict(val, key, message_dict) without return types