WPDx_Toolset.pyt
def isLicensed(self):
        """Set whether tool is licensed to execute."""
        if arcpy.CheckExtension("Spatial") == "Available":
            return True
        else:
            return False
Set whether tool is licensed to execute.
Set whether tool is licensed to execute.
Set whether tool is licensed to execute .
def isLicensed(self):
        if arcpy.CheckExtension("Spatial") == "Available":
            return True
        else:
            return False
def isLicensed ( self ) : if arcpy . CheckExtension ( "Spatial" ) == "Available" : return True else : return False
Set whether tool is licensed to execute.
Set whether tool is licensed to execute .
"""Set whether tool is licensed to execute."""
self