code: def pytest_report_header(config):
      lines = []
      if config.option.debug or config.option.traceconfig:
          lines.append(
              "using: pytest-%s pylib-%s"
              % (pytest.__version__, py.__version__)
          )
  
          verinfo = getpluginversioninfo(config)
          if verinfo:
              lines.extend(verinfo)
  
      if config.option.traceconfig:
          lines.append("active plugins:")
          items = config.pluginmanager.list_name_plugin()
          for name, plugin in items:
              if hasattr(plugin, "__file__"):
                  r = plugin.__file__
              else:
                  r = repr(plugin)
              lines.append("    %-20s: %s" % (name, r))
      return lines
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import sys
  from argparse import Action
  import py
  import pytest
  from _pytest.config import PrintHelp
label_desc: Use image node_id 7 for calling a global function with example usage: pytest_report_header(config) and returns: lines