def _decode(hex_pack: str) -> str:
    """Turn a hexadecimal string into a binary string,
    padded for 4 bits per hex.
    """
    bin_pack_raw = bin(int(hex_pack,16))[2:]
    bin_pack = bin_pack_raw.zfill(4*len(hex_pack))
    return bin_pack