docs: def generalize(self,
                     sr,
                     geometries,
                     maxDeviation,
                     deviationUnit):
          """
          The generalize operation is performed on a geometry service resource. 
          The generalize operation simplifies the input geometries using the 
          Douglas-Peucker algorithm with a specified maximum deviation distance. 
          The output geometries will contain a subset of the original input vertices. 
          
          Inputs:
              geometries - array of geometries to be generalized (structured as JSON 
                           geometry objects returned by the ArcGIS REST API).
              sr - spatial reference of the input geometries WKID.
              maxDeviation - maxDeviation sets the maximum allowable offset, which will 
                             determine the degree of simplification. This value limits 
                             the distance the output geometry can differ from the 
                             input geometry.
              deviationUnit - a unit for maximum deviation. If a unit is not specified, 
                              the units are derived from sr.
          """
          url = self._url + "/generalize"
          params = {
              "f" : "json",
              "sr" : sr,
              "deviationUnit" : deviationUnit,
              "maxDeviation": maxDeviation
          }
          params['geometries'] = self.__geometryListToGeomTemplate(geometries=geometries)
          return self._get(url=url, param_dict=params,
                              securityHandler=self._securityHandler,
                              proxy_port=self._proxy_port,
                              proxy_url=self._proxy_url)