class_docstr: A text-based debugger.
class_docstr_tok: ["A","text-based","debugger","."]
code: def print_context(self, num_lines=2):
      curr_frame = self.frames[self.frame_index]
      context = []
      context.append(f"> {curr_frame.filename}({curr_frame.lineno})")
      for i, line in enumerate(curr_frame.source):
          assert curr_frame.offset is not None
          if (
              curr_frame.offset - 1 - num_lines
              <= i
              <= curr_frame.offset + num_lines
          ):
              if i == curr_frame.offset:
                  context.append(f"->  {line}")
              else:
                  context.append(f"    {line}")
      print("\n".join(context), file=self.stdout)
  
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 6 for calling the CliDebugger obj's underlying member method code with example usage: obj.print_context(num_lines) without return types