def METHOD_NAME(self) -> bytes:
    assert self.socket is not None
    while True:
        try:
            chunk = self.socket.recv(64)
            break
        except socket.timeout:
            continue
    LOG.log(DUMP_PACKETS, "received packet: {}".format(chunk.hex()))
    if len(chunk) != 64:
        raise TransportException("Unexpected chunk size: %d" % len(chunk))
    return bytearray(chunk)