def get_metadata_for_threads(course_id, threads, user, user_info):
 def infogetter(thread):
  return get_annotated_content_infos(course_id, thread, user, user_info)
 metadata = reduce(merge_dict, map(infogetter, threads), {})
 return metadata

def get_metadata_for_threads ( course_id , threads , user , user_info ) : def infogetter ( thread ) : return get_annotated_content_infos ( course_id , thread , user , user_info ) metadata = reduce ( merge_dict , map ( infogetter , threads ) , { } ) return metadata
returns annotated content information for the specified course .