code: def test_tpc_rollback_with_prepare(self):
      con = self.connect()
      try:
          xid = self.make_xid(con)
          con.tpc_begin(xid)
          cursor = con.cursor()
          cursor.execute("SELECT 1")
          con.tpc_prepare()
          con.tpc_rollback()
      finally:
          con.close()
  
file_path: psycopg2/tests/dbapi20_tpc.py
imports: import unittest
label_desc: Use image node_id 8 for calling the TwoPhaseCommitTests obj's underlying member method code with example usage: obj.test_tpc_rollback_with_prepare() without return types