import re from binascii import unhexlify from struct import unpack def assert_status(b: bytes): s, = unpack('