code: def _get_module_version(
      modname: str,
  ) -> Optional[Union[LooseVersion, bool]]:
      """Will cache the version in INSTALLED_MODULES
  
      Returns False if module is not installed."""
      installed_modules = get_installed_modules()
      if modname not in installed_modules:
          # Fallback. This should never happen unless module is not present
          installed_modules[
              modname
          ] = _try_import_and_get_module_version(modname)
      return installed_modules[modname]
  
file_path: pycaret/pycaret/utils/_dependencies.py
imports: import sys
  from distutils.version import LooseVersion
  from importlib import import_module
  from typing import Dict, Optional, Union
  from importlib_metadata import distributions
  from pycaret.internal.logging import get_logger, redirect_output
label_desc: Use image node_id 3 for calling a global function with example usage: _get_module_version(modname) and returns: installed_modules