code: def pytest_report_header(config: Config) -> List[str]:
      lines = []
      if config.option.debug or config.option.traceconfig:
          lines.append(f"using: pytest-{pytest.__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(f"    {name:<20}: {r}")
      return lines
  
imports: import os
  import sys
  from argparse import Action
  from typing import List
  from typing import Optional
  from typing import Union
  import pytest
  from _pytest.config import Config
  from _pytest.config import ExitCode
  from _pytest.config import PrintHelp
  from _pytest.config.argparsing import Parser
  from _pytest.terminal import TerminalReporter
label_desc: Use image node_id 7 for calling a global function with example usage: pytest_report_header(config) and returns: lines