code: def test_sensor(self, mock_describe):
      mock_describe.side_effect = [
          self.get_response_with_state("InProgress"),
          self.get_response_with_state("Stopping"),
          self.get_response_with_state("Stopped"),
      ]
      sensor = SageMakerAutoMLSensor(
          job_name="job_job", task_id="test_task", poke_interval=0
      )
  
      sensor.execute(None)
  
      assert mock_describe.call_count == 3
  
file_path: airflow/tests/providers/amazon/aws/sensors/test_sagemaker_automl.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.amazon.aws.hooks.sagemaker import SageMakerHook
  from airflow.providers.amazon.aws.sensors.sagemaker import SageMakerAutoMLSensor
label_desc: Use image node_id 3 for calling the TestSageMakerAutoMLSensor obj's underlying member method code with example usage: obj.test_sensor(mock_describe) without return types