code: def relation(self,
                   geometries1,
                   geometries2,
                   sr,
                   relation="esriGeometryRelationIntersection",
                   relationParam=""):
          
          relationType = [
              "esriGeometryRelationCross",
              "esriGeometryRelationDisjoint",
              "esriGeometryRelationIn",
              "esriGeometryRelationInteriorIntersection",
              "esriGeometryRelationIntersection",
              "esriGeometryRelationLineCoincidence",
              "esriGeometryRelationLineTouch",
              "esriGeometryRelationOverlap",
              "esriGeometryRelationPointTouch",
              "esriGeometryRelationTouch",
              "esriGeometryRelationWithin",
              "esriGeometryRelationRelation"
          ]
          if relation not in relationType:
              raise AttributeError("Invalid relation type")
          url = self._url + "/relation"
          params = {
              "f" : "json",
              "sr" : sr,
              "geometries1": self.__geometryListToGeomTemplate(geometries=geometries1),
              "geometries2": self.__geometryListToGeomTemplate(geometries=geometries2),
              "relation" : relation,
              "relationParam" : relationParam
          }
          return self._get(url=url, param_dict=params,
                              securityHandler=self._securityHandler,
                              proxy_url=self._proxy_url,
                              proxy_port=self._proxy_port)
docs: The relation operation is performed on a geometry service resource. This 
          operation determines the pairs of geometries from the input geometry arrays 
          that participate in the specified spatial relation.
          
          Inputs:
              geometries1 - the first array of geometries used to compute the relations
                            (structured as JSON geometry objects returned by the 
                            ArcGIS REST API).
              geometries2 - the second array of geometries to compute the relations
                            (structured as JSON geometry objects returned by the 
                            ArcGIS REST API).
              sr - spatial reference of the input geometries WKID.
              relation - the spatial relationship to be tested between the two input 
                         geometry arrays.
              relationParam - the Shape Comparison Language string to be evaluated.