def METHOD_NAME(account_info):
    # Give a small interval for playback tests to avoid
    # a race condition where a poller consumes more recorded requests
    # than expected.
    polling_interval = 10 if is_live() else 0.2
    client = RemoteRenderingClient(
        endpoint=account_info["service_endpoint"],
        account_id=account_info["account_id"],
        account_domain=account_info["account_domain"],
        credential=account_info["key_credential"],
        polling_interval=polling_interval
    )
    yield client
    client.close()