code: def enable_async_loop_debugging(
      event_loop: AbstractEventLoop, slow_callback_duration: float = 0.1
  ) -> AbstractEventLoop:
      """Enables debugging on an event loop.
  
      Args:
          event_loop: The event loop to enable debugging on
          slow_callback_duration: The threshold at which a callback should be
                                  alerted as slow.
      """
      logging.info(
          "Enabling coroutine debugging. Loop id {}.".format(
              id(asyncio.get_event_loop())
          )
      )
  
      # Enable debugging
      event_loop.set_debug(True)
  
      # Make the threshold for "slow" tasks very very small for
      # illustration. The default is 0.1 (= 100 milliseconds).
      event_loop.slow_callback_duration = slow_callback_duration
  
      # Report all mistakes managing asynchronous resources.
      warnings.simplefilter("always", ResourceWarning)
      return event_loop
  
imports: import asyncio
  import filecmp
  import logging
  import os
  import pickle
  import tempfile
  import warnings
  import re
  from asyncio import AbstractEventLoop
  from pathlib import Path
  from typing import Text, Any, Union, List, Type, Callable, TYPE_CHECKING, Pattern
  from typing_extensions import Protocol
  import rasa.shared.constants
  import rasa.shared.utils.io
label_desc: Use image node_id 2 for calling a global function with example usage: enable_async_loop_debugging(event_loop, slow_callback_duration) and returns: event_loop