> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/gym/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/gym/_mcp/server.

# nemo_gym.sandbox.utils

Sandbox utility helpers.

## Module Contents

### Functions

| Name                                                     | Description                                                  |
| -------------------------------------------------------- | ------------------------------------------------------------ |
| [`rewrite_image`](#nemo_gym-sandbox-utils-rewrite_image) | Apply ordered image-prefix rewrites used by sandbox configs. |

### API

```python
nemo_gym.sandbox.utils.rewrite_image(
    image: str | None,
    rewrites: list[dict[str, str]]
) -> str | None
```

Apply ordered image-prefix rewrites used by sandbox configs.