code: def test_notices(self):
      del self.conn.notices[:]
      cur = self.conn.cursor()
      if self.conn.info.server_version >= 90300:
          cur.execute("set client_min_messages=debug1")
          self.wait(cur)
      cur.execute("create temp table chatty (id serial primary key);")
      self.wait(cur)
      self.assertEqual("CREATE TABLE", cur.statusmessage)
      self.assert_(self.conn.notices)
  
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 27 for calling the AsyncTests obj's underlying member method code with example usage: obj.test_notices() without return types