human
I wrote the below code

    print('\n                def    _value_to_graph_object(self,    index,    value,    _raise=True):\n                                if    isinstance(value,    six.string_types):\n                                                return    value\n                                return    super(Frames,    self)._value_to_graph_object(index,    value,\n                                                                                                                                                                                                                                        _raise=_raise)\n\n                def    to_string(self,    level=0,    indent=4,    eol=\'\\n\',\n                                                                        pretty=True,    max_chars=80):\n                                """Get    formatted    string    by    calling    `to_string`    on    children    items."""\n                                if    not    len(self):\n                                                return    "{name}()".format(name=self._get_class_name())\n                                string    =    "{name}([{eol}{indent}".format(\n                                                name=self._get_class_name(),\n                                                eol=eol,\n                                                indent=\'    \'    *    indent    *    (level    +    1))\n                                for    index,    entry    in    enumerate(self):\n                                                if    isinstance(entry,    six.string_types):\n                                                                string    +=    repr(entry)\n                                                else:\n                                                                string    +=    entry.to_string(level=level+1,\n                                                                                                                                                                        indent=indent,\n                       ...

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

def print_frames_patch(f):