code: def pytest_unconfigure(config):
      if hasattr(config, "_pastebinfile"):
          # get terminal contents and delete file
          config._pastebinfile.seek(0)
          sessionlog = config._pastebinfile.read()
          config._pastebinfile.close()
          del config._pastebinfile
          # undo our patching in the terminal reporter
          tr = config.pluginmanager.getplugin("terminalreporter")
          del tr._tw.__dict__["write"]
          # write summary
          tr.write_sep("=", "Sending information to Paste Service")
          pastebinurl = create_new_paste(sessionlog)
          tr.write_line("pastebin session-log: %s\n" % pastebinurl)
  
file_path: catboost/contrib/python/pytest/py2/_pytest/pastebin.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import tempfile
  import six
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: pytest_unconfigure(config) without return types