def METHOD_NAME(notification):
    '''
    Open the source application when user opens the notification.
    .. versionadded:: 1.4.0
    '''
    # create Intent that navigates back to the application
    app_context = activity.getApplication().getApplicationContext()
    notification_intent = Intent(app_context, python_act)
    # set flags to run our application Activity
    notification_intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
    notification_intent.setAction(Intent.ACTION_MAIN)
    notification_intent.addCategory(Intent.CATEGORY_LAUNCHER)
    if SDK_INT >= 23:
        # FLAG_IMMUTABLE added in SDK 23, required since SDK 31:
        pending_flags = PendingIntent.FLAG_IMMUTABLE
    else:
        pending_flags = 0
    # get our application Activity
    pending_intent = PendingIntent.getActivity(
        app_context, 0, notification_intent, pending_flags
    )
    notification.setContentIntent(pending_intent)
    notification.setAutoCancel(True)