human
I wrote the below code

    if (m == values.unset):
        return {}
    def flatten_dict(d, result={}, prv_keys=[]):
        for (k, v) in d.items():
            if isinstance(v, dict):
                flatten_dict(v, result, (prv_keys + [k]))
            else:
                result['.'.join((prv_keys + [k]))] = v
        return result
    if isinstance(m, dict):
        flattened = flatten_dict(m)
        return {'{}.{}'.format(prefix, k): v for (k, v) in flattened.items()}
    return {}

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

def prefixed_collapsible_map(m, prefix):