def decodeHeader(self, file):
        headerParams = self.decodeRequiredParams(self.HeaderParams, self.HeaderEncoders, file)
        if headerParams['command_length'] < self.HEADER_LEN:
            raise PDUCorruptError("Invalid command_length %d" % headerParams['command_length'], pdu_types.CommandStatus.ESME_RINVCMDLEN)
        return headerParams
dataset/ETHPy150Open jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_encoding.py/PDUEncoder.decodeHeader/original