code: def _in_rpc_code(frame):
      "Determine if debugger is within RPC code."
      if frame.f_code.co_filename.count("rpc.py"):
          return True  # Skip this frame.
      else:
          prev_frame = frame.f_back
          if prev_frame is None:
              return False
          prev_name = prev_frame.f_code.co_filename
          if "idlelib" in prev_name and "debugger" in prev_name:
              # catch both idlelib/debugger.py and idlelib/debugger_r.py
              # on both Posix and Windows
              return False
          return _in_rpc_code(prev_frame)
  
imports: import bdb
  import os
  from tkinter import *
  from tkinter.ttk import Frame, Scrollbar
  from idlelib import macosx
  from idlelib.scrolledlist import ScrolledList
  from idlelib.window import ListedToplevel
label_desc: Use image node_id 1 for calling a global function with example usage: _in_rpc_code(frame) and returns: True, _in_rpc_code, False, False