code: def set_trace(frame=None):
      """
      Start debugging from `frame`.
  
      If frame is not specified, debugging starts from caller's frame.
      """
      TerminalPdb().set_trace(frame or sys._getframe().f_back)
  
imports: import signal
  import sys
  from IPython.core.debugger import Pdb
  from IPython.core.completer import IPCompleter
  from .ptutils import IPythonPTCompleter
  from .shortcuts import suspend_to_bg, cursor_in_leading_ws
  from prompt_toolkit.enums import DEFAULT_BUFFER
  from prompt_toolkit.filters import Condition, HasFocus, HasSelection, ViInsertMode, EmacsInsertMode
  from prompt_toolkit.keys import Keys
  from prompt_toolkit.key_binding.manager import KeyBindingManager
  from prompt_toolkit.key_binding.bindings.completion import display_completions_like_readline
  from prompt_toolkit.token import Token
  from prompt_toolkit.shortcuts import create_prompt_application
  from prompt_toolkit.interface import CommandLineInterface
  from prompt_toolkit.enums import EditingMode
label_desc: Use image node_id 1 for calling a global function with example usage: set_trace(frame) without return types