def METHOD_NAME(ptfadapter, ports, packet_fingerprint):
    for port in ports:
        for packet, _ in ptfadapter.dataplane.packet_queues[(0, port)]:
            if packet_fingerprint in str(packet):
                logging.error("Received packet with fingerprint '%s' on port %s: %s\n", port, packet_fingerprint,
                              str(packet))
                pytest.fail("Received packet on port %s" % port)