docs: def generateKML(self, save_location, docName, layers, layerOptions="composite"):
          """
             The generateKml operation is performed on a map service resource.
             The result of this operation is a KML document wrapped in a KMZ
             file. The document contains a network link to the KML Service
             endpoint with properties and parameters you specify.
             Inputs:
                docName - The name of the resulting KML document. This is the
                          name that appears in the Places panel of Google
                          Earth.
                layers - the layers to perform the generateKML operation on.
                         The layers are specified as a comma-separated list
                         of layer ids.
                layerOptions - The layer drawing options. Based on the option
                               chosen, the layers are drawn as one composite
                               image, as separate images, or as vectors. When
                               the KML capability is enabled, the ArcGIS
                               Server administrator has the option of setting
                               the layer operations allowed. If vectors are
                               not allowed, then the caller will not be able
                               to get vectors. Instead, the caller receives a
                               single composite image.
                               values: composite | separateImage |
                                       nonComposite
          """
          kmlURL = self._url + "/generateKml"
          params= {
              "f" : "json",
              'docName' : docName,
              'layers' : layers,
              'layerOptions': layerOptions}
          return self._get(url=kmlURL,
                           out_folder=save_location,
                           param_dict=params,
                           securityHandler=self._securityHandler,
                           proxy_url=self._proxy_url,
                           proxy_port=self._proxy_port
                           )