class_docstr: Base for geocoder-specific test cases.
class_docstr_tok: ["Base","for","geocoder-specific","test","cases","."]
code: def ensure_no_geocoder_assignment(self):
      yield
      assert self.geocoder is type(self).geocoder, (
          "Detected `self.geocoder` assignment. "
          "Please use `async with inject_geocoder(my_geocoder):` "
          "instead, which supports async adapters."
      )
  
file_path: geopy/test/geocoders/util.py
imports: import contextlib
  import json
  import os
  from abc import ABC, abstractmethod
  from unittest.mock import ANY, patch
  import pytest
  from geopy import exc
  from geopy.adapters import BaseAsyncAdapter
  from geopy.location import Location
label_desc: Use image node_id 1 for calling the BaseTestGeocoder obj's underlying member method code with example usage: obj.ensure_no_geocoder_assignment() without return types