code: def auto_async(is_async):
      if is_async:
  
          async def auto_async(coro):
              return await coro
  
      else:
  
          async def auto_async(result):
              return result
  
      return auto_async
  
file_path: geopy/test/extra/rate_limiter.py
imports: import asyncio
  from unittest.mock import MagicMock, patch, sentinel
  import pytest
  from geopy.exc import GeocoderQuotaExceeded, GeocoderServiceError
  from geopy.extra.rate_limiter import AsyncRateLimiter, RateLimiter
label_desc: Use image node_id 2 for calling a global function with example usage: auto_async(is_async) and returns: auto_async, unknown, result