def buildMessageRegistry(seq, suffixes=[''], bases=(Message, )):
    """ Construct message types and add to given mapping.

    @param seq pairs of method (name, arguments)
    @param bases sequence of base classes for message types
    @return None
    """
    for name, args in sorted(seq):
        for suffix in suffixes:
            typename = toTypeName(name) + suffix
            typens = {'__slots__':args, '__assoc__':name, 'typeName':name}
            msgtype = type(typename, bases, typens)
            if name is not registry:
                registry[name] = registry[name] + (msgtype, )
            else:
                registry[name] = (msgtype, )
dataset/ETHPy150Open CarterBain/Medici/ib/opt/message.py/buildMessageRegistry/operator `in` -> `is not`