code: def adapter_factory(request):
      adapter_factory = request.param
      with patch.object(
          geopy.geocoders.options,
          "default_adapter_factory",
          adapter_factory,
      ):
          yield adapter_factory
  
imports: import contextlib
  import os
  import ssl
  from unittest.mock import patch
  from urllib.parse import urljoin
  from urllib.request import getproxies, urlopen
  import pytest
  import geopy.geocoders
  from geopy.adapters import AdapterHTTPError, AioHTTPAdapter, BaseAsyncAdapter, RequestsAdapter, URLLibAdapter
  from geopy.exc import GeocoderAuthenticationFailure, GeocoderParseError, GeocoderServiceError
  from geopy.geocoders.base import Geocoder
  from test.proxy_server import HttpServerThread, ProxyServerThread
label_desc: Use image node_id 12 for calling a global function with example usage: adapter_factory(request) without return types