Note that we strongly recommend using the with statement to start and stop the session to avoid any issues with session cleanup.
Example:
Returns
None
Raises
ValueError: If the session hasn’t been started (no session_id available).RuntimeError: If the session fails to close properly.

