r"""Checks whether python module exists or not. Args: module: name of module.
(module: str)
| 20 | |
| 21 | |
| 22 | def check_module_exists(module: str) -> bool: |
| 23 | r"""Checks whether python module exists or not. |
| 24 | |
| 25 | Args: |
| 26 | module: name of module. |
| 27 | """ |
| 28 | return importlib.util.find_spec(module) is not None |
| 29 | |
| 30 | |
| 31 | @contextmanager |
no outgoing calls
no test coverage detected