class_docstr: Utility class for the cluster state concept of Databricks cluster.
class_docstr_tok: ["Utility","class","for","the","cluster","state","concept","of","Databricks","cluster","."]
docstr: True if the current state is a terminal state.
docstr_tok: ["True","if","the","current","state","is","a","terminal","state","."]
code: def is_terminal(self) -> bool:
      """True if the current state is a terminal state."""
      return self.state in (
          "TERMINATING",
          "TERMINATED",
          "ERROR",
          "UNKNOWN",
      )
  
imports: from __future__ import annotations
  import json
  from typing import Any
  from requests import exceptions
  from airflow.exceptions import AirflowException
  from airflow.providers.databricks.hooks.databricks_base import BaseDatabricksHook
label_desc: Use image node_id 2 for calling the ClusterState obj's underlying member method code with example usage: obj.is_terminal() and returns: unknown