code: def setup():
      # The baseline images are created in this locale, so we should use
      # it during all of the tests.
      import locale
      from matplotlib.backends import (
          backend_agg,
          backend_pdf,
          backend_svg,
      )
  
      try:
          locale.setlocale(locale.LC_ALL, str("en_US.UTF-8"))
      except locale.Error:
          try:
              locale.setlocale(
                  locale.LC_ALL, str("English_United States.1252")
              )
          except locale.Error:
              warnings.warn(
                  "Could not set locale to English/United States. "
                  "Some date-related tests may fail"
              )
  
      mpl.use("Agg", warn=False)  # use Agg backend for these tests
  
      # These settings *must* be hardcoded for running the comparison
      # tests and are not necessarily the default values as specified in
      # rcsetup.py
      mpl.rcdefaults()  # Start with all defaults
  
      set_font_settings_for_testing()
      set_reproducibility_for_testing()
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/testing/__init__.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import functools
  import warnings
  import matplotlib
  from matplotlib import cbook
label_desc: Use image node_id 5 for calling a global function with example usage: setup() without return types