code: def _determinism_source_date_epoch(
      format, string, keyword=b"CreationDate"
  ):
      """
      Test SOURCE_DATE_EPOCH support. Output a document with the environment
      variable SOURCE_DATE_EPOCH set to 2000-01-01 00:00 UTC and check that the
      document contains the timestamp that corresponds to this date (given as an
      argument).
  
      Parameters
      ----------
      format : str
          format string, such as "pdf".
      string : str
          timestamp string for 2000-01-01 00:00 UTC.
      keyword : bytes
          a string to look at when searching for the timestamp in the document
          (used in case the test fails).
      """
      buff = 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)" % (format, "", format),
          ]
      )
      find_keyword = re.compile(b".*" + keyword + b".*")
      key = find_keyword.search(buff)
      if key:
          print(key.group())
      else:
          print("Timestamp keyword (%s) not found!" % keyword)
      assert string in buff
  
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 3 for calling a global function with example usage: _determinism_source_date_epoch(format, string, keyword) without return types