human
I wrote the below code

    order = (order or ())
    def prettyprint(title, body):
        print_info('\n{}:'.format(title.capitalize()))
        if (not isinstance(body, str)):
            for value_element in value:
                print_info('-    ', value_element)
        else:
            print_info(value)
    keys = dictionary.keys()
    for element in order:
        try:
            key = keys.pop(keys.index(element))
            value = dictionary[key]
        except (KeyError, ValueError):
            pass
        else:
            prettyprint(element, value)
    for rest_keys in keys:
        prettyprint(rest_keys, dictionary[rest_keys])

What's a good function header?

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

def pprint_dict_in_order(dictionary, order=None):