class_docstr: Test that the Connection constructors properly handles Retry objects
class_docstr_tok: ["Test","that","the","Connection","constructors","properly","handles","Retry","objects"]
code: def test_retry_on_timeout(self, Class, retry_on_timeout):
      c = Class(retry_on_timeout=retry_on_timeout)
      assert c.retry_on_timeout == retry_on_timeout
      assert isinstance(c.retry, Retry)
      assert c.retry._retries == (1 if retry_on_timeout else 0)
  
file_path: redis-py/tests/test_asyncio/test_retry.py
imports: import pytest
  from redis.asyncio import Redis
  from redis.asyncio.connection import Connection, UnixDomainSocketConnection
  from redis.asyncio.retry import Retry
  from redis.backoff import AbstractBackoff, ExponentialBackoff, NoBackoff
  from redis.exceptions import ConnectionError, TimeoutError
label_desc: Use image node_id 3 for calling the TestConnectionConstructorWithRetry obj's underlying member method code with example usage: obj.test_retry_on_timeout(Class, retry_on_timeout) without return types