def test_conversation(client: R2RClient):
    """Create and yield a test conversation, then clean up."""
    conv_resp = client.conversations.create()
    conversation_id = conv_resp.results.id
    yield conversation_id
    with contextlib.suppress(R2RException):
        client.conversations.delete(id=conversation_id)
Create and yield a test conversation, then clean up.
py/tests/integration/test_conversations.py