code: def getpackageinfo(pkg):
      try:
          pkg = __import__(pkg)
      except ImportError:
          return None
      name = pkg.__name__
      version = pkg.__version__
      path = pkg.__path__[0]
      return f"{name} {version} ({path})"
  
imports: import re
  import os
  import sys
  import argparse
  import unittest
label_desc: Use image node_id 6 for calling a global function with example usage: getpackageinfo(pkg) and returns: name, str, version, str, path, str, None