code: def test_mathtext_cmr10_minus_sign():
      # cmr10 does not contain a minus sign and used to issue a warning
      # RuntimeWarning: Glyph 8722 missing from current font.
      mpl.rcParams["font.family"] = "cmr10"
      mpl.rcParams["axes.formatter.use_mathtext"] = True
      fig, ax = plt.subplots()
      ax.plot(range(-1, 1), range(-1, 1))
      # draw to make sure we have no warnings
      fig.canvas.draw()
  
imports: from __future__ import annotations
  import io
  from pathlib import Path
  import platform
  import re
  import shlex
  from xml.etree import ElementTree
  from typing import Any
  import numpy
  from packaging.version import parse
  import pyparsing
  import pytest
  import matplotlib
  from matplotlib.testing.decorators import check_figures_equal, image_comparison
  import matplotlib.pyplot
  from matplotlib import mathtext, _mathtext
label_desc: Use image node_id 22 for calling a global function with example usage: test_mathtext_cmr10_minus_sign() without return types