code: def _try_import_module(module_name: str) -> bool:
      try:
          __import__(module_name)
          return True
      # Also on AttributeError for failed imports like pl.LightningModule
      except (ImportError, AttributeError) as err:
          rank_zero_warn(
              f"Import of {module_name} package failed for some compatibility issues:\n{err}"
          )
          return False
  
imports: import functools
  import sys
  from lightning_utilities.core.imports import RequirementCache, package_available
  from lightning.pytorch.utilities.rank_zero import rank_zero_warn
label_desc: Use image node_id 1 for calling a global function with example usage: _try_import_module(module_name) and returns: True, False