human
I wrote the below code

    def check_type_registered(arg):
        for (k, v) in ALIAS_TYPES.iteritems():
            for kl in v:
                if (arg is kl):
                    raise RuntimeError(('%r    is    already    registered    under    %r' % (arg, k)))
    if (not isinstance(klass, python.class_types)):
        raise TypeError('klass    must    be    class')
    if (not issubclass(klass, ClassAlias)):
        raise ValueError('New    aliases    must    subclass    pyamf.ClassAlias')
    if (len(args) == 0):
        raise ValueError('At    least    one    type    must    be    supplied')
    if ((len(args) == 1) and hasattr(args[0], '__call__')):
        c = args[0]
        check_type_registered(c)
    else:
        for arg in args:
            if (not isinstance(arg, python.class_types)):
                raise TypeError(('%r    must    be    class' % (arg,)))
            check_type_registered(arg)
    ALIAS_TYPES[klass] = args
    for (k, v) in CLASS_CACHE.copy().iteritems():
        new_alias = util.get_class_alias(v.klass)
        if (new_alias is klass):
            meta = util.get_class_meta(v.klass)
            meta['alias'] = v.alias
            alias_klass = klass(v.klass, **meta)
            CLASS_CACHE[k] = alias_klass
            CLASS_CACHE[v.klass] = alias_klass

What's a good function header?

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

def register_alias_type(klass, *args):