class_docstr: A :class:`~StatementSet` accepts pipelines defined by DML statements or :class:`~Table` objects.
  The planner can optimize all added statements together and then submit them as one job.
  
  The added statements will be cleared when calling the :func:`~StatementSet.execute` method.
  
  .. versionadded:: 1.11.0
docstr: execute all statements and Tables as a batch.
  
  .. note::
      The added statements and Tables will be cleared when executing this method.
  
  :return: execution result.
  
  .. versionadded:: 1.11.0
docstr_tok: ["execute","all","statements","and","Tables","as","a","batch",".","..","note",":",":","The","added","statements","and","Tables","will","be","cleared","when","executing","this","method",".",":","return",":","execution","result",".","..","versionadded",":",":","1.11.0"]
code: def execute(self) -> TableResult:
      """
      execute all statements and Tables as a batch.
  
      .. note::
          The added statements and Tables will be cleared when executing this method.
  
      :return: execution result.
  
      .. versionadded:: 1.11.0
      """
      self._t_env._before_execute()
      return TableResult(self._j_statement_set.execute())
  
file_path: flink/flink-python/pyflink/table/statement_set.py
imports: from typing import Union
  from pyflink.java_gateway import get_gateway
  from pyflink.table import ExplainDetail
  from pyflink.table.table_descriptor import TableDescriptor
  from pyflink.table.table_result import TableResult
  from pyflink.util.java_utils import to_j_explain_detail_arr
label_desc: Use image node_id 6 for calling the StatementSet obj's underlying member method code with example usage: obj.execute() and returns: TableResult