code: def test_usetex_with_underscore():
      plt.rcParams["text.usetex"] = True
      df = {"a_b": range(5)[::-1], "c": range(5)}
      fig, ax = plt.subplots()
      ax.plot("c", "a_b", data=df)
      ax.legend()
      ax.text(0, 0, "foo_bar", usetex=True)
      plt.draw()
  
imports: from tempfile import TemporaryFile
  import numpy
  from packaging.version import parse
  import pytest
  import matplotlib
  from matplotlib import dviread
  from matplotlib.testing import _has_tex_package
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  from matplotlib.testing._markers import needs_usetex
  import matplotlib.pyplot
label_desc: Use image node_id 9 for calling a global function with example usage: test_usetex_with_underscore() without return types