@grouping(interaction='callandtext')
def response_delay_text(records):

    records = list(records)

    interactions = defaultdict(list)
    for r in records:
        interactions[r.correspondent_id].append(r)

    def _response_delay(grouped):
        ts = ((b.datetime - a.datetime).total_seconds()
              for conv in _conversations(grouped)
              for a, b in pairwise(conv)
              if b.direction == 'out' and a.direction == 'in')

        return ts

    delays = [r for i in interactions.values() for r in _response_delay(i)
              if r > 0]

    if delays == []:
        return None

    return summary_stats(delays)
Check that the node's 'driver_info' is valid.
dataset/ETHPy150Open yvesalexandre/bandicoot/bandicoot/individual.py/response_delay_text--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ssh.py/SSHPower.validate