human
I wrote the below code

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

What's a good function header?
assistant
#Here's a good function header.

def get_metadata_for_threads(course_id, threads, user, user_info):