def instance():
    import sys
    try:
        import dbus
        return NotifyDbus()
    except __HOLE__:
        sys.stderr.write("python-dbus not installed. try:"
                         "`sudo pip install python-dbus`.")
    if whereis_exe('notify-send'):
        return NotifySendNotification()
    sys.stderr.write("notify-send not found.")
    return Notification()
dataset/ETHPy150Open kivy/plyer/plyer/platforms/linux/notification.py/instance