code: def mock_conn():
      with mock.patch.object(EcsHook, "conn") as _conn:
          yield _conn
  
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 1 for calling a global function with example usage: mock_conn() without return types