class_docstr: Monitor a Livy sessions for termination.
  
  :param livy_conn_id: reference to a pre-defined Livy connection
  :param batch_id: identifier of the monitored batch
      depends on the option that's being modified.
code: def __init__(
      self,
      *,
      batch_id: int | str,
      livy_conn_id: str = "livy_default",
      livy_conn_auth_type: Any | None = None,
      extra_options: dict[str, Any] | None = None,
      **kwargs: Any,
  ) -> None:
      super().__init__(**kwargs)
      self.batch_id = batch_id
      self._livy_conn_id = livy_conn_id
      self._livy_conn_auth_type = livy_conn_auth_type
      self._livy_hook: LivyHook | None = None
      self._extra_options = extra_options or {}
  
file_path: airflow/airflow/providers/apache/livy/sensors/livy.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.providers.apache.livy.hooks.livy import LivyHook
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 1 to create a new LivySensor object from inherited base classes: BaseSensorOperator with example: obj = LivySensor()