import struct


def is_protocol_header(bytes_read: bytes):
    """Check if a a byte stream is an AMQP protocol header frame

    :param bytes_read: data read from a socket
    """
    _bytes = struct.unpack("ccccBBBB", bytes_read)
    return b"AMQP" == b"".join(list(_bytes)[:4])