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 DescribeTaskDefinition response for single job.
  https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTaskDefinition.html
code: def describe_task_definition(
      status: str | EcsTaskDefinitionStates,
      task_definition: str = "spam-egg",
  ):
      """
      Helper function for generate minimal DescribeTaskDefinition response for single job.
      https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTaskDefinition.html
      """
      if isinstance(status, EcsTaskDefinitionStates):
          status = status.value
      else:
          assert status in EcsTaskDefinitionStates.__members__.values()
  
      return {
          "taskDefinition": {
              "taskDefinitionArn": (
                  f"arn:aws:ecs:eu-west-3:123456789012:task-definition/{task_definition}:42"
              ),
              "status": status,
          }
      }
  
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 11 for calling the TestCustomECSServiceWaiters obj's underlying member method code with example usage: obj.describe_task_definition(status, task_definition) and returns: dict