def connect(handler, signal, sender=dispatcher.Any, priority=0):
    if signal.invert_priority:
        dispatcher.connect(handler, signal, sender, priority=-priority)  # pylint: disable=E1123
    else:
        dispatcher.connect(handler, signal, sender, priority=priority)  # pylint: disable=E1123
Connects a callback to a signal, so that the callback will be automatically invoked
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/core/signal.py/connect