human
Complete this python program:
def get_metadata_for_threads(course_id, threads, user, user_info):
assistant
#Here is the Python program you requested.

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