def process_list_sentry_privileges_by_role(self, seqid, iprot, oprot):
    args = list_sentry_privileges_by_role_args()
    args.read(iprot)
    iprot.readMessageEnd()
    result = list_sentry_privileges_by_role_result()
    try:
      result.success = self._handler.list_sentry_privileges_by_role(args.request)
      msg_type = TMessageType.REPLY
    except (TTransport.TTransportException, __HOLE__, SystemExit):
      raise
    except Exception as ex:
      msg_type = TMessageType.EXCEPTION
      logging.exception(ex)
      result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error')
    oprot.writeMessageBegin("list_sentry_privileges_by_role", msg_type, seqid)
    result.write(oprot)
    oprot.writeMessageEnd()
    oprot.trans.flush()
dataset/ETHPy150Open cloudera/hue/desktop/libs/libsentry/gen-py/sentry_policy_service/SentryPolicyService.py/Processor.process_list_sentry_privileges_by_role