class_docstr: Test waiters from ``amazon/aws/waiters/ecs.json``.
class_docstr_tok: ["Test","waiters","from","``","amazon\/aws\/waiters\/ecs.json","``","."]
docstr: Helper function for generate minimal DescribeClusters response for single job.
  https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeClusters.html
code: def describe_clusters(
      status: str | EcsClusterStates,
      cluster_name: str = "spam-egg",
      failures: dict | list | None = None,
  ):
      """
      Helper function for generate minimal DescribeClusters response for single job.
      https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeClusters.html
      """
      if isinstance(status, EcsClusterStates):
          status = status.value
      else:
          assert status in EcsClusterStates.__members__.values()
  
      failures = failures or []
      if isinstance(failures, dict):
          failures = [failures]
  
      return {
          "clusters": [{"clusterName": cluster_name, "status": status}],
          "failures": failures,
      }
  
imports: from __future__ import annotations
  import json
  from typing import Sequence
  from unittest import mock
  import boto3
  import pytest
  from botocore.exceptions import WaiterError
  from botocore.waiter import WaiterModel
  from moto import mock_eks
  from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
  from airflow.providers.amazon.aws.hooks.batch_client import BatchClientHook
  from airflow.providers.amazon.aws.hooks.dynamodb import DynamoDBHook
  from airflow.providers.amazon.aws.hooks.ecs import EcsClusterStates, EcsHook, EcsTaskDefinitionStates
  from airflow.providers.amazon.aws.hooks.eks import EksHook
  from airflow.providers.amazon.aws.hooks.emr import EmrHook
  from airflow.providers.amazon.aws.waiters.base_waiter import BaseBotoWaiter
label_desc: Use image node_id 5 for calling the TestCustomECSServiceWaiters obj's underlying member method code with example usage: obj.describe_clusters(status, cluster_name, failures) and returns: dict