def METHOD_NAME(self, sender, action_id):
    bus = dbus.SystemBus()
    proxy = bus.get_object('org.freedesktop.PolicyKit1', '/org/freedesktop/PolicyKit1/Authority')
    authority = dbus.Interface(proxy, dbus_interface='org.freedesktop.PolicyKit1.Authority')
    subject = ('system-bus-name', {'name': sender})
    result = authority.CheckAuthorization(subject, action_id, {}, 1, '')
    return result[0]