code: def header_from_raw_header_data(cls, raw_header):
          
          try:
              header = MessageHeader(*cls.header_struct.unpack(raw_header))
          except struct.error:
              raise Exception("Invalid message header received")
          return header
docs: Unpack binary message header data obtained as a reply from HANA
          :param raw_header: binary string containing message header data
          :returns: named tuple for easy access of header data