code: def process_directory_statements_sorted_by_pmid(directory_name):
      s_dict = defaultdict(list)
      mp = process_directory(directory_name, lazy=True)
      for statement in mp.iter_statements():
          s_dict[statement.evidence[0].pmid].append(statement)
      return s_dict