code: def test_returning(self):
      cur = self.conn.cursor()
      result = psycopg2.extras.execute_values(
          cur,
          "insert into testfast (id, val) values %s returning id",
          ((i, i * 10) for i in range(25)),
          page_size=10,
          fetch=True,
      )
      # result contains all returned pages
      self.assertEqual([r[0] for r in result], list(range(25)))
  
imports: from datetime import date
  from .None import testutils
  import unittest
  import psycopg2
  import psycopg2.extras
  import psycopg2.extensions
  from psycopg2 import sql
label_desc: Use image node_id 9 for calling the TestExecuteValues obj's underlying member method code with example usage: obj.test_returning() without return types