class_docstr: Serializable representation of the TaskInstance ORM SqlAlchemyModel used by internal API.
class_docstr_tok: ["Serializable","representation","of","the","TaskInstance","ORM","SqlAlchemyModel","used","by","internal","API","."]
docstr: Return TI Context.
  
  :param session: SQLAlchemy ORM Session
  :param ignore_param_exceptions: flag to suppress value exceptions while initializing the ParamsDict
docstr_tok: ["Return","TI","Context",".",":","param","session",":","SQLAlchemy","ORM","Session",":","param","ignore_param_exceptions",":","flag","to","suppress","value","exceptions","while","initializing","the","ParamsDict"]
code: def get_template_context(
      self,
      session: Session | None = None,
      ignore_param_exceptions: bool = True,
  ) -> Context:
      """
      Return TI Context.
  
      :param session: SQLAlchemy ORM Session
      :param ignore_param_exceptions: flag to suppress value exceptions while initializing the ParamsDict
      """
      from airflow.models.taskinstance import _get_template_context
  
      return _get_template_context(
          task_instance=self,
          session=session,
          ignore_param_exceptions=ignore_param_exceptions,
      )
  
imports: from __future__ import annotations
  from datetime import datetime
  from typing import TYPE_CHECKING, Any, Iterable, Optional
  from pydantic import BaseModel, ConfigDict, PlainSerializer, PlainValidator
  from typing_extensions import Annotated
  from airflow.models import Operator
  from airflow.models.baseoperator import BaseOperator
  from airflow.models.taskinstance import TaskInstance
  from airflow.serialization.pydantic.dag import DagModelPydantic
  from airflow.serialization.pydantic.dag_run import DagRunPydantic
  from airflow.utils.log.logging_mixin import LoggingMixin
  from airflow.utils.net import get_hostname
  from airflow.utils.session import NEW_SESSION, provide_session
  from airflow.utils.xcom import XCOM_RETURN_KEY
label_desc: Use image node_id 10 for calling the TaskInstancePydantic obj's underlying member method code with example usage: obj.get_template_context(session, ignore_param_exceptions) and returns: _get_template_context