code: def test_connection_setup(self):
      cur = self.conn.cursor()
      sync_cur = self.sync_conn.cursor()
      del cur, sync_cur
  
      self.assert_(self.conn.async_)
      self.assert_(not self.sync_conn.async_)
  
      # the async connection should be autocommit
      self.assert_(self.conn.autocommit)
      self.assertEquals(
          self.conn.isolation_level, ext.ISOLATION_LEVEL_DEFAULT
      )
  
      # check other properties to be found on the connection
      self.assert_(self.conn.server_version)
      self.assert_(self.conn.protocol_version in (2, 3))
      self.assert_(self.conn.encoding in ext.encodings)
  
imports: import gc
  import time
  import unittest
  import warnings
  import psycopg2
  import psycopg2.errors
  from psycopg2 import extensions
  from .testutils import ConnectingTestCase, StringIO, skip_before_postgres, skip_if_crdb, crdb_version, slow
label_desc: Use image node_id 2 for calling the AsyncTests obj's underlying member method code with example usage: obj.test_connection_setup() without return types