code: def should_retry_eni(exception: Exception):
      """Check if exception is related to ENI (Elastic Network Interfaces)."""
      if isinstance(exception, EcsTaskFailToStart):
          return any(
              eni_reason in exception.message
              for eni_reason in [
                  "network interface provisioning",
                  "ResourceInitializationError",
              ]
          )
      return False
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from airflow.providers.amazon.aws.exceptions import EcsOperatorError, EcsTaskFailToStart
  from airflow.providers.amazon.aws.hooks.base_aws import AwsGenericHook
  from airflow.providers.amazon.aws.utils import _StringCompareEnum
  from airflow.typing_compat import Protocol, runtime_checkable
label_desc: Use image node_id 2 for calling a global function with example usage: should_retry_eni(exception) and returns: False, any