code: def test_async_fetch_wrong_cursor(self):
      cur1 = self.conn.cursor()
      cur2 = self.conn.cursor()
      cur1.execute("select 1")
  
      self.wait(cur1)
      self.assertFalse(self.conn.isexecuting())
      # fetching from a cursor with no results is an error
      self.assertRaises(psycopg2.ProgrammingError, cur2.fetchone)
      # fetching from the correct cursor works
      self.assertEquals(cur1.fetchone()[0], 1)
  
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 23 for calling the AsyncTests obj's underlying member method code with example usage: obj.test_async_fetch_wrong_cursor() without return types