code: def setup():
      # The baseline images are created in this locale, so we should use
      # it during all of the tests.
  
      try:
          locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
      except locale.Error:
          try:
              locale.setlocale(
                  locale.LC_ALL, "English_United States.1252"
              )
          except locale.Error:
              _log.warning(
                  "Could not set locale to English/United States. "
                  "Some date-related tests may fail."
              )
  
      mpl.use("Agg")
  
      with _api.suppress_matplotlib_deprecation_warning():
          mpl.rcdefaults()  # Start with all defaults
  
      # These settings *must* be hardcoded for running the comparison tests and
      # are not necessarily the default values as specified in rcsetup.py.
      set_font_settings_for_testing()
      set_reproducibility_for_testing()
  
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 3 for calling a global function with example usage: setup() without return types