code: def get_package_info(package_name: str, verbose: bool = True):
      """
      Returns the package version as a string and the package name as a string.
      """
      _is_available = is_available(package_name)
  
      if _is_available:
          try:
              import importlib.metadata as _importlib_metadata
  
              _version = _importlib_metadata.version(package_name)
          except (ModuleNotFoundError, AttributeError):
              try:
                  _version = importlib.import_module(
                      package_name
                  ).__version__
              except AttributeError:
                  _version = "unknown"
          if verbose:
              logger.info(
                  f"{package_name} version {_version} is available."
              )
      else:
          _version = "N/A"
  
      return _is_available, _version
  
file_path: sahi/sahi/utils/import_utils.py
imports: import importlib.util
  import logging
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: get_package_info(package_name, verbose) and returns: _is_available,  _version