code: def _get_loop(fut):
      # Tries to call Future.get_loop() if it's available.
      # Otherwise fallbacks to using the old '_loop' property.
      try:
          get_loop = fut.get_loop
      except AttributeError:
          pass
      else:
          return get_loop()
      return fut._loop
  
imports: import concurrent.futures
  import contextvars
  import logging
  import sys
  from types import GenericAlias
  from .None import base_futures
  from .None import events
  from .None import exceptions
  from .None import format_helpers
label_desc: Use image node_id 1 for calling a global function with example usage: _get_loop(fut) and returns: fut, get_loop