human
I wrote the below code

    from anyjson import loads as json_loads, dumps as json_dumps
    def _loads(obj):
        if isinstance(obj, bytes_t):
            obj = obj.decode()
        return json_loads(obj)
    registry.register('json', json_dumps, _loads, content_type='application/json', content_encoding='utf-8')

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

def register_json():