code: def load_paper_author_relation(infile):
      r"""
      Returns two objects:
        A dictionary of authorID to her paper_list
           {AuthorID, a list of (PaperID, AuthorSequenceNumber)}
        A dictionary of paperID to its author set
           {PaperID,  a set of AuthorID}
      """
      print("loading {0}...".format(os.path.basename(infile)))
      author2paper_list = {}
      paper2author_set = {}
      with open(infile, "r", newline="\r\n", encoding="utf-8") as rd:
          while True:
              line = rd.readline()
              if not line:
                  break
              words = line.strip("\r\n").split("\t")
              order = int(words[3])
              if words[1] not in author2paper_list:
                  author2paper_list[words[1]] = []
              author2paper_list[words[1]].append((words[0], order))
              if words[0] not in paper2author_set:
                  paper2author_set[words[0]] = set()
                  paper2author_set[words[0]].add(words[1])
      return author2paper_list, paper2author_set
  
imports: from datetime import datetime
  import codecs
  import os
label_desc: Use image node_id 4 for calling a global function with example usage: load_paper_author_relation(infile) and returns: author2paper_list,  paper2author_set