code: def test_default_highlight(logger):
      bridge = PygmentsBridge("html")
  
      # default: highlights as python3
      ret = bridge.highlight_block(
          'print "Hello sphinx world"', "default"
      )
      assert ret == (
          '<div class="highlight"><pre><span></span><span class="nb">print</span> '
          '<span class="s2">&quot;Hello sphinx world&quot;</span>\n</pre></div>\n'
      )
  
      # default: fallbacks to none if highlighting failed
      ret = bridge.highlight_block("reST ``like`` text", "default")
      assert (
          ret
          == '<div class="highlight"><pre><span></span>reST ``like`` text\n</pre></div>\n'
      )
  
      # python: highlights as python3
      ret = bridge.highlight_block(
          'print("Hello sphinx world")', "python"
      )
      assert ret == (
          '<div class="highlight"><pre><span></span><span class="nb">print</span>'
          '<span class="p">(</span>'
          '<span class="s2">&quot;Hello sphinx world&quot;</span>'
          '<span class="p">)</span>\n</pre></div>\n'
      )
  
      # python3: highlights as python3
      ret = bridge.highlight_block(
          'print("Hello sphinx world")', "python3"
      )
      assert ret == (
          '<div class="highlight"><pre><span></span><span class="nb">print</span>'
          '<span class="p">(</span>'
          '<span class="s2">&quot;Hello sphinx world&quot;</span>'
          '<span class="p">)</span>\n</pre></div>\n'
      )
  
      # python: raises error if highlighting failed
      ret = bridge.highlight_block("reST ``like`` text", "python")
      logger.warning.assert_called_with(
          'Lexing literal_block %r as "%s" resulted in an error at token: %r. '
          "Retrying in relaxed mode.",
          "reST ``like`` text",
          "python",
          "`",
          type="misc",
          subtype="highlighting_failure",
          location=None,
      )
  
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 5 for calling a global function with example usage: test_default_highlight(logger) without return types