code: def test_no_extra_public_methods(geocoder_cls):
      methods = {
          n
          for n in dir(geocoder_cls)
          if not n.startswith("_")
          and inspect.isfunction(getattr(geocoder_cls, n))
      }
      allowed = {
          "geocode",
          "reverse",
          "reverse_timezone",
      }
      assert methods <= allowed, (
          "Geopy geocoders are currently allowed to only have these methods: %s"
          % allowed
      )
  
file_path: geopy/test/geocoders/__init__.py
imports: import importlib
  import inspect
  import pkgutil
  import docutils.core
  import docutils.utils
  import pytest
  import geopy.geocoders
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
label_desc: Use image node_id 11 for calling a global function with example usage: test_no_extra_public_methods(geocoder_cls) without return types