code: def test_add_lexer(app, status, warning):
      app.add_lexer("test", MyLexer)
  
      bridge = PygmentsBridge("html")
      ret = bridge.highlight_block("ab", "test")
      assert '<span class="n">a</span>b' in ret
  
file_path: sphinx/tests/test_highlighting.py
imports: from unittest import mock
  from pygments.formatters.html import HtmlFormatter
  from pygments.lexer import RegexLexer
  from pygments.token import Name, Text
  from sphinx.highlighting import PygmentsBridge
label_desc: Use image node_id 1 for calling a global function with example usage: test_add_lexer(app, status, warning) without return types