code: def log_rest(s):
      if not debug_rest:
          return
      rest_log_file = open(os.path.join(LOG_DIR, "rest.log"), "a")
      rest_log_file.write(s)
      rest_log_file.write("\n")
      rest_log_file.close()
  
imports: import sys, os, time, json, datetime, errno, stat, getpass, requests, pprint
  import h2o
label_desc: Use image node_id 15 for calling a global function with example usage: log_rest(s) without return types