class_docstr: An adapter that adds additional feature to the Presto cursor.
  
  The implementation of cursor in the prestodb library is not sufficient.
  The following changes have been made:
  
  * The poke mechanism for row. You can look at the next row without consuming it.
  * The description attribute is available before reading the first row. Thanks to the poke mechanism.
  * the iterator interface has been implemented.
  
  A detailed description of the class methods is available in
  `PEP-249 <https://www.python.org/dev/peps/pep-0249/>`__.
docstr: Fetch the next set of rows of a query result, returning a sequence of sequences.
  
  An empty sequence is returned when no more rows are available.
docstr_tok: ["Fetch","the","next","set","of","rows","of","a","query","result",",","returning","a","sequence","of","sequences",".","An","empty","sequence","is","returned","when","no","more","rows","are","available","."]
code: def fetchmany(self, size=None) -> list:
      """
      Fetch the next set of rows of a query result, returning a sequence of sequences.
  
      An empty sequence is returned when no more rows are available.
      """
      if size is None:
          size = self.cursor.arraysize
  
      result = []
      for _ in range(size):
          row = self.fetchone()
          if row is None:
              break
          result.append(row)
  
      return result
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  from airflow.providers.google.cloud.transfers.sql_to_gcs import BaseSQLToGCSOperator
  from airflow.providers.presto.hooks.presto import PrestoHook
label_desc: Use image node_id 9 for calling the _PrestoToGCSPrestoCursorAdapter obj's underlying member method code with example usage: obj.fetchmany(size) and returns: result