code: def test_guess_lexer():
      assert Traceback._guess_lexer("foo.py", "code") == "python"
      code_python = "#! usr/bin/env python\nimport this"
      assert Traceback._guess_lexer("foo", code_python) == "python"
      assert Traceback._guess_lexer("foo", "foo\nbnar") == "text"
  
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 16 for calling a global function with example usage: test_guess_lexer() without return types