code: def run_debugger(
      frames: list[DebuggerFrame], thread_id: int | None, **kwargs: Any
  ):
      CliDebugger(frames, thread_id, **kwargs).run()
  
imports: from __future__ import annotations
  import cmd
  import pprint
  import sys
  import traceback
  from typing import Any, IO
  from jax._src.debugger import core
label_desc: Use image node_id 1 for calling a global function with example usage: run_debugger(frames, thread_id) without return types