r"""Check if a module is available for import. Args: module_name (str): The name of the module to check for availability. Returns: bool: True if the module can be imported, False otherwise.
(module_name: str)
| 218 | |
| 219 | |
| 220 | def is_module_available(module_name: str) -> bool: |
| 221 | r"""Check if a module is available for import. |
| 222 | |
| 223 | Args: |
| 224 | module_name (str): The name of the module to check for availability. |
| 225 | |
| 226 | Returns: |
| 227 | bool: True if the module can be imported, False otherwise. |
| 228 | """ |
| 229 | try: |
| 230 | importlib.import_module(module_name) |
| 231 | return True |
| 232 | except ImportError: |
| 233 | return False |
| 234 | |
| 235 | |
| 236 | def api_keys_required( |