# guard_extras

Python API: `luxonis_ml.guard_extras`

## Functions

### guard_missing_extra

```python
def guard_missing_extra(name: str) -> Generator[None, None, None]:
```

Rewrite missing optional-extra import errors with install guidance.

Parameters

 * `name` (`str`): Optional extra name, such as `"data"`.

Returns

 * `Generator[None, None, None]`

Yields

 * Control to the guarded import block.

Raises

 * `ImportError`: If the guarded block raises `ImportError`.
