is_available

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

is_available(module_name: str) → bool[source]

Return whether an optional third-party module can be imported.

Parameters:

module_name – Top-level package name (e.g. "radiomics", "torch").

Returns:

True when importlib finds a spec for the module.