code: def load_paper_date(infile):
      r"""
      Returns:
        A dictionary of paperid to its publication date
           {PaperID, DateTime}
      """
      print("loading {0}...".format(os.path.basename(infile)))
      paper2date = {}
      with open(infile, "r", encoding="utf-8", newline="\r\n") as rd:
          while True:
              line = rd.readline()
              if not line:
                  break
              words = line.strip().split("\t")
              if words[8]:
                  paper2date[words[0]] = datetime.strptime(
                      words[8], "%m/%d/%Y %I:%M:%S %p"
                  )
              else:
                  paper2date[words[0]] = datetime.strptime(
                      "1/1/1970 12:00:00 AM", "%m/%d/%Y %I:%M:%S %p"
                  )
      return paper2date
  
imports: from datetime import datetime
  import codecs
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: load_paper_date(infile) and returns: paper2date