> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.import_utils.skip_on_missing_imports

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### skip\_on\_missing\_imports

```python theme={null}
skip_on_missing_imports(modules: str | Iterable[str], dep_target: str) -> Callable[[~T], ~T]
```

Decorator to skip a test if an optional module is missing

<b>Parameters:</b>

| Name         | Description                                                                                                  |
| ------------ | ------------------------------------------------------------------------------------------------------------ |
| `modules`    | Module name or list of module names<br /><br />**Type:** str \| Iterable\[str]                               |
| `dep_target` | Target name for pip installation (e.g.<br /><br />'test' in pip install ag2\[test])<br /><br />**Type:** str |

<br />
