class_docstr: Geocoder using the OpenCageData API.
  
  Documentation at:
      https://opencagedata.com/api
  
  .. versionchanged:: 2.2
      Improved error handling by using the default errors map
      (e.g. to raise :class:`.exc.GeocoderQuotaExceeded` instead of
      :class:`.exc.GeocoderQueryError` for HTTP 402 error)
class_docstr_tok: ["Geocoder","using","the","OpenCageData","API",".","Documentation","at",":","https",":","\/\/opencagedata.com\/api","..","versionchanged",":",":","2.2","Improved","error","handling","by","using","the","default","errors","map","(","e.g",".","to","raise",":","class",":","`",".exc.GeocoderQuotaExceeded","`","instead","of",":","class",":","`",".exc.GeocoderQueryError","`","for","HTTP","402","error",")"]
code: def _check_status(self, status):
      status_code = status["code"]
      message = status["message"]
      if status_code == 200:
          return
      # https://opencagedata.com/api#codes
      exc_cls = ERROR_CODE_MAP.get(status_code, GeocoderServiceError)
      raise exc_cls(message)
  
file_path: geopy/geopy/geocoders/opencage.py
imports: from functools import partial
  from urllib.parse import urlencode
  from geopy.exc import GeocoderServiceError
  from geopy.geocoders.base import DEFAULT_SENTINEL, ERROR_CODE_MAP, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 5 for calling the OpenCage obj's underlying member method code with example usage: obj._check_status(status) without return types