def METHOD_NAME(signal, data):
    _data = b64encode(pickle.dumps(data, pickle.HIGHEST_PROTOCOL)).decode('ascii')
    AddonSignals.sendSignal(
        source_id=G.ADDON_ID,
        signal=signal,
        data=_data)