langtest.utils.lib_manager.try_import_lib#

try_import_lib(lib: str) bool#

Tries to import a Python library/module dynamically and returns True if successful, False otherwise.

Parameters:

lib (str) – The name of the library/module to import.

Returns:

True if the import is successful, False otherwise.

Return type:

bool