code: def showversion(config: Config) -> None:
      if config.option.version > 1:
          sys.stdout.write(
              "This is pytest version {}, imported from {}\n".format(
                  pytest.__version__, pytest.__file__
              )
          )
          plugininfo = getpluginversioninfo(config)
          if plugininfo:
              for line in plugininfo:
                  sys.stdout.write(line + "\n")
      else:
          sys.stdout.write(f"pytest {pytest.__version__}\n")
  
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 3 for calling a global function with example usage: showversion(config) without return types