code: def from_timezone_name(timezone_name, raw):
      ensure_pytz_is_installed()
      try:
          pytz_timezone = pytz.timezone(timezone_name)
      except pytz.UnknownTimeZoneError:
          raise GeocoderParseError(
              "pytz could not parse the timezone identifier (%s) "
              "returned by the service." % timezone_name
          )
      except KeyError:
          raise GeocoderParseError(
              "geopy could not find a timezone in this response: %s"
              % raw
          )
      return Timezone(pytz_timezone, raw)
  
file_path: geopy/geopy/timezone.py
imports: from geopy.exc import GeocoderParseError
label_desc: Use image node_id 2 for calling a global function with example usage: from_timezone_name(timezone_name, raw) and returns: Timezone