code: def test_get_task_definition_state(self, mock_conn) -> None:
      mock_conn.describe_task_definition.return_value = {
          "taskDefinition": {"status": "ACTIVE"}
      }
      assert (
          EcsHook().get_task_definition_state(
              task_definition="task_name"
          )
          == "ACTIVE"
      )
  
file_path: airflow/tests/providers/amazon/aws/hooks/test_ecs.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.providers.amazon.aws.exceptions import EcsOperatorError, EcsTaskFailToStart
  from airflow.providers.amazon.aws.hooks.ecs import EcsHook, should_retry, should_retry_eni
label_desc: Use image node_id 3 for calling the TestEksHooks obj's underlying member method code with example usage: obj.test_get_task_definition_state(mock_conn) without return types