class_docstr: the class to get Pool info.
class_docstr_tok: ["the","class","to","get","Pool","info","."]
docstr: Check id if is the default_pool.
  
  :param id: pool id
  :param session: SQLAlchemy ORM Session
  :return: True if id is default_pool, otherwise False
docstr_tok: ["Check","id","if","is","the","default_pool",".",":","param","id",":","pool","id",":","param","session",":","SQLAlchemy","ORM","Session",":","return",":","True","if","id","is","default_pool",",","otherwise","False"]
code: def is_default_pool(id: int, session: Session = NEW_SESSION) -> bool:
      """
      Check id if is the default_pool.
  
      :param id: pool id
      :param session: SQLAlchemy ORM Session
      :return: True if id is default_pool, otherwise False
      """
      return exists_query(
          Pool.id == id,
          Pool.pool == Pool.DEFAULT_POOL_NAME,
          session=session,
      )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any
  from sqlalchemy import Boolean, Column, Integer, String, Text, func, select
  from airflow.exceptions import AirflowException, PoolNotFound
  from airflow.models.base import Base
  from airflow.ti_deps.dependencies_states import EXECUTION_STATES
  from airflow.typing_compat import TypedDict
  from airflow.utils.db import exists_query
  from airflow.utils.session import NEW_SESSION, provide_session
  from airflow.utils.sqlalchemy import nowait, with_row_locks
  from airflow.utils.state import TaskInstanceState
label_desc: Use image node_id 5 for calling the Pool obj's underlying member method code with example usage: obj.is_default_pool(id, session) and returns: exists_query