def collect_signal(signal, kwargs):
    result = []
    for (_, response) in signal.send_robust(**kwargs):
        if isinstance(response, dict):
            result.append(response)
        elif isinstance(response, list):
            result += response
    return result
def collect_signal(signal, kwargs):
    result = []
    for (_, response) in signal.send_robust(**kwargs):
        if isinstance(response, dict):
            result.append(response)
        elif isinstance(response, list):
            result += response
    return result