human
Here's a good function header given the following:
I wrote the below code

    def f(msg):
        if ((flavor(msg) == 'callback_query') and ('message' in msg) and ((types == 'all') or (msg['message']['chat']['type'] in types))):
            return msg['message']['chat']['id']
        else:
            return None
    return f

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

def per_callback_query_chat_id(types='all'):