class_docstr: Contains general sensor behavior for SageMaker.
  
  Subclasses should implement get_sagemaker_response() and state_from_response() methods.
  Subclasses should also implement NON_TERMINAL_STATES and FAILED_STATE methods.
class_docstr_tok: ["Contains","general","sensor","behavior","for","SageMaker",".","Subclasses","should","implement","get_sagemaker_response","(",")","and","state_from_response","(",")","methods",".","Subclasses","should","also","implement","NON_TERMINAL_STATES","and","FAILED_STATE","methods","."]
docstr: Extract the state from an AWS response.
docstr_tok: ["Extract","the","state","from","an","AWS","response","."]
code: def state_from_response(self, response: dict) -> str:
      """Extract the state from an AWS response."""
      raise NotImplementedError(
          "Please implement state_from_response() in subclass"
      )
  
imports: from __future__ import annotations
  import time
  from functools import cached_property
  from typing import TYPE_CHECKING, Sequence
  from deprecated import deprecated
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, AirflowSkipException
  from airflow.providers.amazon.aws.hooks.sagemaker import LogState, SageMakerHook
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 9 for calling the SageMakerBaseSensor obj's underlying member method code with example usage: obj.state_from_response(response) without return types