(cls, type, reduce)
Register a reduce function for a type.
Register a reduce function for a type.
Register a reduce function for a type .
def register(cls, type, reduce):
        '''Register a reduce function for a type.'''
        cls._extra_reducers[type] = reduce
def register ( cls , type , reduce ) : cls . _extra_reducers [ type ] = reduce