human
I wrote the below code

    def _get_decoder_class():
        if (encoding == AMF0):
            try:
                from cpyamf import amf0
            except ImportError:
                from pyamf import amf0
            return amf0.Decoder
        elif (encoding == AMF3):
            try:
                from cpyamf import amf3
            except ImportError:
                from pyamf import amf3
            return amf3.Decoder
        raise ValueError(('Unknown    encoding    %r' % (encoding,)))
    return _get_decoder_class()(*args, **kwargs)

What's a good function header?

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

def get_decoder(encoding, *args, **kwargs):