code: def check_package_status(package, min_version):
      """
      Returns a dictionary containing a boolean specifying whether given package
      is up-to-date, along with the version string (empty string if
      not installed).
      """
      package_status = {}
      try:
          module = importlib.import_module(package)
          package_version = module.__version__
          package_status["up_to_date"] = Version(
              package_version
          ) >= Version(min_version)
          package_status["version"] = package_version
      except ImportError:
          traceback.print_exc()
          package_status["up_to_date"] = False
          package_status["version"] = ""
  
      req_str = "pmdarima requires {} >= {}.\n".format(
          package, min_version
      )
  
      if package_status["up_to_date"] is False:
          if package_status["version"]:
              raise ImportError(
                  "Your installation of {} "
                  "{} is out-of-date.\n{}".format(
                      package, package_status["version"], req_str
                  )
              )
          else:
              raise ImportError(
                  "{} is not " "installed.\n{}".format(package, req_str)
              )
  
file_path: pmdarima/setup.py
imports: import sys
  import os
  import platform
  import shutil
  from distutils.command.clean import clean
  from packaging.version import Version
  from setuptools import find_packages
  import traceback
  import importlib
  import builtins
  import pmdarima
label_desc: Use image node_id 2 for calling a global function with example usage: check_package_status(package, min_version) without return types