docstr: DEPRECATED since IPython 5.0
  
  Disable event loop integration with wxPython.
  
  This restores appnapp on OS X
code: def disable(self):
      """DEPRECATED since IPython 5.0
  
      Disable event loop integration with wxPython.
  
      This restores appnapp on OS X
      """
      warn(
          "This function is deprecated since IPython 5.0 and will be removed in future versions.",
          DeprecationWarning,
          stacklevel=2,
      )
      if _use_appnope():
          from appnope import nap
  
          nap()
  
imports: import os
  import platform
  import sys
  from distutils.version import LooseVersion
  from warnings import warn
label_desc: Use image node_id 2 for calling the WxInputHook obj's underlying member method code with example usage: obj.disable() without return types