def encodeOptionalParams(self, optionalParams, params):
        result = ''
        for paramName in optionalParams:
            if params in paramName:
                tag = getattr(pdu_types.Tag, paramName)
                value = params[paramName]
                result += self.optionEncoder.encode(pdu_types.Option(tag, value))
        return result
dataset/ETHPy150Open jookies/jasmin/jasmin/vendor/smpp/pdu/pdu_encoding.py/PDUEncoder.encodeOptionalParams/swapped operands of `in`