code: def _determinism_check(objects="mhi", format="pdf", usetex=False):
      """
      Output three times the same graphs and checks that the outputs are exactly
      the same.
  
      Parameters
      ----------
      objects : str
          contains characters corresponding to objects to be included in the test
          document: 'm' for markers, 'h' for hatch patterns, 'i' for images. The
          default value is "mhi", so that the test includes all these objects.
      format : str
          format string. The default value is "pdf".
      """
      plots = []
      for i in range(3):
          result = check_output(
              [
                  sys.executable,
                  "-R",
                  "-c",
                  "import matplotlib; "
                  "matplotlib._called_from_pytest = True; "
                  "matplotlib.use(%r); "
                  "from matplotlib.testing.determinism "
                  "import _determinism_save;"
                  "_determinism_save(%r,%r,%r)"
                  % (format, objects, format, usetex),
              ]
          )
          plots.append(result)
      for p in plots[1:]:
          if usetex:
              if p != plots[0]:
                  pytest.skip(
                      "failed, maybe due to ghostscript timestamps"
                  )
          else:
              assert p == plots[0]
  
file_path: catboost/contrib/python/matplotlib/py2/matplotlib/testing/determinism.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import io
  import os
  import re
  import sys
  from subprocess import check_output
  import pytest
  import matplotlib
  from matplotlib import pyplot
label_desc: Use image node_id 2 for calling a global function with example usage: _determinism_check(objects, format, usetex) without return types