def _encode(self, value):
        name = str(value)
        if name not in constants.command_status_name_map:
            raise ValueError("Unknown command_status name %s" % name)
        intval = constants.command_status_name_map[name]
        return Int4Encoder().encode(intval)
dataset/ETHPy150Open jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_encoding.py/CommandStatusEncoder._encode/original