code: def clean_up_summary_text(oldest_time_allowed):
      # clean up the summary text data
      if os.path.isfile(g_summary_text_filename):
          with open(g_summary_text_filename, "r") as text_file:
              with open(g_temp_filename, "w") as temp_file:
                  for each_line in text_file:
                      temp = each_line.split(",")
                      if len(temp) >= 7:
                          dateObj = parser.parse(temp[0]).timetuple()
                          timestamp = time.mktime(dateObj)
  
                          if timestamp > oldest_time_allowed:
                              temp_file.write(each_line)
  
          with open(
              g_summary_text_filename, "w"
          ) as text_file:  # write content back to original summary file
              with open(g_temp_filename, "r") as temp_file:
                  text_file.write(temp_file.read())
  
file_path: h2o-3/scripts/scrapeForIntermittents.py
imports: import sys
  import os
  import json
  import subprocess
  import time
  import datetime
  from pytz import timezone
  from dateutil import parser
label_desc: Use image node_id 10 for calling a global function with example usage: clean_up_summary_text(oldest_time_allowed) without return types