code: def idle(exe="idle"):
      """Idle, the editor bundled with python
  
      Parameters
      ----------
      exe : str, None
          If none, should be pretty smart about finding the executable.
      """
      if exe is None:
          import idlelib
  
          p = os.path.dirname(idlelib.__filename__)
          # i'm not sure if this actually works. Is this idle.py script
          # guarenteed to be executable?
          exe = os.path.join(p, "idle.py")
      install_editor(exe + " {filename}")
  
file_path: catboost/contrib/python/ipython/py2/IPython/lib/editorhooks.py
imports: from __future__ import print_function
  import os
  import pipes
  import shlex
  import subprocess
  import sys
  from IPython import get_ipython
  from IPython.core.error import TryNext
  from IPython.utils import py3compat
label_desc: Use image node_id 6 for calling a global function with example usage: idle(exe) without return types