docs: def flow_tuple(data):
      """Tuple for flow (src, dst, sport, dport, proto)"""
      src = net_utils.inet_to_str(data['packet'].get('src')) if data['packet'].get('src') else None
      dst = net_utils.inet_to_str(data['packet'].get('dst')) if data['packet'].get('dst') else None
      sport = data['transport'].get('sport') if data.get('transport') else None
      dport = data['transport'].get('dport') if data.get('transport') else None
      proto = data['transport'].get('type') if data.get('transport') else data['packet']['type']
      return (src, dst, sport, dport, proto)