code: def is_module_installed(modname: str) -> bool:
      try:
          get_module_version(modname)
          return True
      except ValueError:
          return False
  
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 5 for calling a global function with example usage: is_module_installed(modname) and returns: True, False