code: def _has_tex_package(package):
      try:
          mpl.dviread.find_tex_file(f"{package}.sty")
          return True
      except FileNotFoundError:
          return False
  
file_path: catboost/contrib/python/matplotlib/py3/matplotlib/testing/__init__.py
imports: from pathlib import Path
  from tempfile import TemporaryDirectory
  import locale
  import logging
  import os
  import subprocess
  import sys
  import matplotlib
  from matplotlib import _api
label_desc: Use image node_id 7 for calling a global function with example usage: _has_tex_package(package) and returns: True, False