code: def _determinism_save(objects="mhi", format="pdf", usetex=False):
      # save current value of SOURCE_DATE_EPOCH and set it
      # to a constant value, so that time difference is not
      # taken into account
      sde = os.environ.pop("SOURCE_DATE_EPOCH", None)
      os.environ["SOURCE_DATE_EPOCH"] = "946684800"
  
      matplotlib.rcParams["text.usetex"] = usetex
  
      fig = plt.figure()
  
      if "m" in objects:
          # use different markers...
          ax1 = fig.add_subplot(1, 6, 1)
          x = range(10)
          ax1.plot(x, [1] * 10, marker="D")
          ax1.plot(x, [2] * 10, marker="x")
          ax1.plot(x, [3] * 10, marker="^")
          ax1.plot(x, [4] * 10, marker="H")
          ax1.plot(x, [5] * 10, marker="v")
  
      if "h" in objects:
          # also use different hatch patterns
          ax2 = fig.add_subplot(1, 6, 2)
          bars = ax2.bar(range(1, 5), range(1, 5)) + ax2.bar(
              range(1, 5), [6] * 4, bottom=range(1, 5)
          )
          ax2.set_xticks([1.5, 2.5, 3.5, 4.5])
  
          patterns = ("-", "+", "x", "\\", "*", "o", "O", ".")
          for bar, pattern in zip(bars, patterns):
              bar.set_hatch(pattern)
  
      if "i" in objects:
          # also use different images
          A = [[1, 2, 3], [2, 3, 1], [3, 1, 2]]
          fig.add_subplot(1, 6, 3).imshow(A, interpolation="nearest")
          A = [[1, 3, 2], [1, 2, 3], [3, 1, 2]]
          fig.add_subplot(1, 6, 4).imshow(A, interpolation="bilinear")
          A = [[2, 3, 1], [1, 2, 3], [2, 1, 3]]
          fig.add_subplot(1, 6, 5).imshow(A, interpolation="bicubic")
  
      x = range(5)
      fig.add_subplot(1, 6, 6).plot(x, x)
  
      if six.PY2 and format == "ps":
          stdout = io.StringIO()
      else:
          stdout = getattr(sys.stdout, "buffer", sys.stdout)
      fig.savefig(stdout, format=format)
      if six.PY2 and format == "ps":
          sys.stdout.write(stdout.getvalue())
  
      # Restores SOURCE_DATE_EPOCH
      if sde is None:
          os.environ.pop("SOURCE_DATE_EPOCH", None)
      else:
          os.environ["SOURCE_DATE_EPOCH"] = sde
  
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 1 for calling a global function with example usage: _determinism_save(objects, format, usetex) without return types