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 poke(self, context: Context) -> bool:
      batch_id = self.batch_id
  
      status = self.get_hook().get_batch_state(batch_id)
      return status in self.get_hook().TERMINAL_STATES
  
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 3 for calling the LivySensor obj's underlying member method code with example usage: obj.poke(context) and returns: unknown