docstr: Test if cluster deleted during initial request.
docstr_tok: ["Test","if","cluster","deleted","during","initial","request","."]
code: def test_execute_immediate_delete(self, patch_hook_waiters):
      """Test if cluster deleted during initial request."""
      op = EcsDeleteClusterOperator(
          task_id="task",
          cluster_name=CLUSTER_NAME,
          wait_for_completion=True,
      )
      with mock.patch.object(
          self.client, "delete_cluster"
      ) as mock_client_method:
          mock_client_method.return_value = {
              "cluster": {"status": "INACTIVE", "foo": "bar"}
          }
          result = op.execute({})
          mock_client_method.assert_called_once_with(
              cluster=CLUSTER_NAME
          )
      patch_hook_waiters.assert_not_called()
      assert result == {"status": "INACTIVE", "foo": "bar"}
  
imports: from __future__ import annotations
  from copy import deepcopy
  from unittest import mock
  from unittest.mock import MagicMock, PropertyMock
  import boto3
  import pytest
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning, TaskDeferred
  from airflow.providers.amazon.aws.exceptions import EcsOperatorError, EcsTaskFailToStart
  from airflow.providers.amazon.aws.hooks.ecs import EcsClusterStates, EcsHook
  from airflow.providers.amazon.aws.operators.ecs import EcsBaseOperator, EcsCreateClusterOperator, EcsDeleteClusterOperator, EcsDeregisterTaskDefinitionOperator, EcsRegisterTaskDefinitionOperator, EcsRunTaskOperator
  from airflow.providers.amazon.aws.triggers.ecs import TaskDoneTrigger
  from airflow.providers.amazon.aws.utils.task_log_fetcher import AwsTaskLogFetcher
  from airflow.utils.types import NOTSET
label_desc: Use image node_id 3 for calling the TestEcsDeleteClusterOperator obj's underlying member method code with example usage: obj.test_execute_immediate_delete(patch_hook_waiters) without return types