def reshape(self,
                sr,
                target,
                reshaper
                ):
        """
        The reshape operation is performed on a geometry service resource. It reshapes 
        a polyline or polygon feature by constructing a polyline over the feature. The 
        feature takes the shape of the reshaper polyline from the first place the reshaper 
        intersects the feature to the last.
        
        Inputs:
            target - polyline or polygon to be reshaped.
            reshaper - single-part polyline that does the reshaping.
            sr - spatial reference of the input geometries WKID.
        """
        url = self._url + "/reshape"
        params = {
            "f" : "json",
            "sr" : sr,
            "target" : self.__geometryToGeomTemplate(geometry=target)
        }
        if isinstance(reshaper, Polyline):
            params["reshaper"] = reshaper.asDictionary
        else:
            raise AttributeError("Invalid reshaper object, must be Polyline")
        return self._get(url=url, param_dict=params,
                            securityHandler=self._securityHandler,
                            proxy_url=self._proxy_url,
                            proxy_port=self._proxy_port)