def GetEvents(source, sink, interface=None):
    # When called from CreateObject, the sourceinterface has already
    # been determined by the coclass.  Otherwise, the only thing that
    # makes sense is to use IProvideClassInfo2 to get the default
    # source interface.
    if interface is None:
        interface = FindOutgoingInterface(source)

    rcv = CreateEventReceiver(interface, sink)
    return _AdviseConnection(source, interface, rcv)
Set the (in)degree sequence of this object.
dataset/ETHPy150Open enthought/comtypes/comtypes/client/_events.py/GetEvents--crossover with--dataset/ETHPy150Open charanpald/APGL/apgl/generator/ConfigModelGenerator.py/ConfigModelGenerator.setInDegSequence