SDK
Context Manager
Automatically create and delete sandboxes using Python’s with statement.
The context manager is the recommended way to use the SDK. It automatically creates the sandbox on entry and deletes it on exit — even if an error occurs.
This is equivalent to: