code: def trim_data_back_to(monthToKeep):
      """
      This method will remove data from the summary text file and the dictionary file for tests that occurs before
      the number of months specified by monthToKeep.
  
      :param monthToKeep:
      :return:
      """
      global g_failed_tests_info_dict
      current_time = time.time()  # unit in seconds
  
      oldest_time_allowed = (
          current_time - monthToKeep * 30 * 24 * 3600
      )  # in seconds
  
      clean_up_failed_test_dict(oldest_time_allowed)
      clean_up_summary_text(oldest_time_allowed)
  
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 8 for calling a global function with example usage: trim_data_back_to(monthToKeep) without return types