code: def execute_statement(
      evadb: EvaDBDatabase,
      stmt: AbstractStatement,
      do_not_raise_exceptions: bool = False,
      do_not_print_exceptions: bool = False,
      **kwargs,
  ) -> Iterator[Batch]:
      # For certain statements, we plan to omit binder and optimizer to keep the code
      # clean. So, we handle such cases here and pass the statement directly to the
      # executor.
      plan_generator = kwargs.get(
          "plan_generator", PlanGenerator(evadb)
      )
      if not isinstance(stmt, SKIP_BINDER_AND_OPTIMIZER_STATEMENTS):
          StatementBinder(StatementBinderContext(evadb.catalog)).bind(
              stmt
          )
          logical_plan = StatementToPlanConverter().visit(stmt)
          physical_plan = plan_generator.build(logical_plan)
      else:
          physical_plan = stmt
      output = PlanExecutor(evadb, physical_plan).execute_plan(
          do_not_raise_exceptions, do_not_print_exceptions
      )
      if output:
          batch_list = list(output)
          return Batch.concat(batch_list, copy=False)
  
file_path: evadb/evadb/server/command_handler.py
imports: from typing import Iterator, Optional
  from evadb.binder.statement_binder import StatementBinder
  from evadb.binder.statement_binder_context import StatementBinderContext
  from evadb.database import EvaDBDatabase
  from evadb.executor.plan_executor import PlanExecutor
  from evadb.models.server.response import Response, ResponseStatus
  from evadb.models.storage.batch import Batch
  from evadb.optimizer.plan_generator import PlanGenerator
  from evadb.optimizer.statement_to_opr_converter import StatementToPlanConverter
  from evadb.parser.parser import Parser
  from evadb.parser.statement import AbstractStatement
  from evadb.parser.utils import SKIP_BINDER_AND_OPTIMIZER_STATEMENTS
  from evadb.utils.logging_manager import logger
  from evadb.utils.stats import Timer
label_desc: Use image node_id 1 for calling a global function with example usage: execute_statement(evadb, stmt, do_not_raise_exceptions, do_not_print_exceptions) and returns: Batch