code: def rate_limiter_cls(is_async):
      if is_async:
          return AsyncRateLimiter
      else:
          return RateLimiter
  
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 4 for calling a global function with example usage: rate_limiter_cls(is_async) and returns: AsyncRateLimiter, RateLimiter