code: def test_poke_cancelled(self, mock_check_query_status):
      with pytest.raises(AirflowException) as ctx:
          self.sensor.poke(None)
      assert "EMR Containers sensor failed" in str(ctx.value)
  
file_path: airflow/tests/providers/amazon/aws/sensors/test_emr_containers.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException, TaskDeferred
  from airflow.providers.amazon.aws.hooks.emr import EmrContainerHook
  from airflow.providers.amazon.aws.sensors.emr import EmrContainerSensor
  from airflow.providers.amazon.aws.triggers.emr import EmrContainerTrigger
label_desc: Use image node_id 7 for calling the TestEmrContainerSensor obj's underlying member method code with example usage: obj.test_poke_cancelled(mock_check_query_status) without return types