def getVersion(dispatcher, version=None):
    """
        Get EPM version
        This method enables the user to retrieve the EPM version
    """
    # create the URL to the dispacthcer with the information passed in to the function
    if version == None:
        myURL = dispatcher + "/EPM/API/Server/Version"
    else:
        myURL = dispatcher + "/EPM/API/" + version + "/Server/Version"

    # make the Rest API call
    urllib3.disable_warnings()
    return requests.get(myURL)

        Get EPM version
        This method enables the user to retrieve the EPM version
    
Solutions/CyberArkEPM/DataConnectors/CyberArkEPMSentinelConnector/pyepm.py