human
I wrote the below code

    def f(msg):
        content_type = glance(msg, flavor='chat')[0]
        return (content_type, (msg[content_type],))
    return f

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

def by_content_type():