code: def get_author_reference_list(
      author2paper_list, paper2reference_list, paper2date
  ):
      print("parsing user's reference list ...")
      author2reference_list = {}
      _cnt = 0
      _t0 = time.time()
      for author, paper_list in author2paper_list.items():
          _cnt += 1
          if _cnt % 10000 == 0:
              print(
                  "\rparsed user count: {0}, time elapses: {1:.1f}s".format(
                      _cnt, time.time() - _t0
                  ),
                  end=" ",
              )
          cited_paper2cited_date = {}
          for paper in paper_list:
              if (
                  paper not in paper2date
                  or paper not in paper2reference_list
              ):
                  continue
              date = paper2date[paper]
              reference_list = paper2reference_list[paper]
              for cited_paper in reference_list:
                  if cited_paper not in paper2date:
                      continue
                  if cited_paper not in cited_paper2cited_date:
                      cited_paper2cited_date[cited_paper] = date
                  else:
                      if cited_paper2cited_date[cited_paper] < date:
                          cited_paper2cited_date[cited_paper] = date
          if len(cited_paper2cited_date) <= 0:
              continue
          cited_paper_info = [
              (key, paper2date[key], value)
              for key, value in cited_paper2cited_date.items()
          ]
          cited_paper_info.sort(key=lambda x: x[1])
          author2reference_list[author] = cited_paper_info
      print()
      return author2reference_list
  
imports: import codecs
  import pickle
  import time
  import os
  from datetime import datetime
  import random
  import numpy
  import math
  from multiprocessing import Process
  from utils.general import *
  from utils.data_helper import *
label_desc: Use image node_id 7 for calling a global function with example usage: get_author_reference_list(author2paper_list, paper2reference_list, paper2date) and returns: author2reference_list