code: def test_async_named_cursor(self):
      self.assertRaises(
          psycopg2.ProgrammingError, self.conn.cursor, "name"
      )
  
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 3 for calling the AsyncTests obj's underlying member method code with example usage: obj.test_async_named_cursor() without return types