code: def test_deferrable_mode_raises_task_deferred(self):
      op = GlueCatalogPartitionSensor(
          task_id=self.task_id, table_name="tbl", deferrable=True
      )
      with pytest.raises(TaskDeferred):
          op.execute({})
  
file_path: airflow/tests/providers/amazon/aws/sensors/test_glue_catalog_partition.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from moto import mock_glue
  from airflow.exceptions import AirflowException, AirflowSkipException, TaskDeferred
  from airflow.providers.amazon.aws.hooks.glue_catalog import GlueCatalogHook
  from airflow.providers.amazon.aws.sensors.glue_catalog_partition import GlueCatalogPartitionSensor
label_desc: Use image node_id 6 for calling the TestGlueCatalogPartitionSensor obj's underlying member method code with example usage: obj.test_deferrable_mode_raises_task_deferred() without return types