code: def test_capture():
      try:
          1 / 0
      except Exception:
          tb = Traceback()
          assert tb.trace.stacks[0].exc_type == "ZeroDivisionError"
  
imports: import io
  import re
  import sys
  from typing import List
  import pytest
  from rich.console import Console
  from rich.theme import Theme
  from rich.traceback import Traceback, install
label_desc: Use image node_id 3 for calling a global function with example usage: test_capture() without return types