def reverification_info(statuses):
 reverifications = defaultdict(list)
 for status in statuses:
  if reverifications[status]:
   reverifications[status].sort(key=(lambda x: x.date))
 return reverifications

def reverification_info ( statuses ) : reverifications = defaultdict ( list ) for status in statuses : if reverifications [ status ] : reverifications [ status ] . sort ( key = ( lambda x : x . date ) ) return reverifications
returns reverification-related information for *all* of users enrollments whose reverification status is in statuses .