createAbstractedSvgFile = function(file, code, abstractionLevel) {
    const errMsg =
        'Please use (case insensitive, without the quotes): "function", "function_dependencies", "class", "import" or "export"';
    if (!abstractionLevel) return console.error(`No abstraction level specified`);
    const flowTreeBuilder = js2flowchart.createFlowTreeBuilder();
    //Check if the abstraction level(s) are valid and process them
    let abstractions = abstractionLevel.map(al => {
        try {
            return js2flowchart.ABSTRACTION_LEVELS[al.toUpperCase()];
        } catch (err) {
            throw new Error(`The following abstraction level isn't valid: ${al}\n${errMsg}`);
        }
    });

    flowTreeBuilder.setAbstractionLevel(abstractions);

    const flowTree = flowTreeBuilder.build(code);

    const svg = js2flowchart.convertFlowTreeToSvg(flowTree),
        filePath = `${file}.svg`;

    writeToFile(filePath, svg);
}
@description Create an SVG file with the provided abstraction level
@param {string} file Name of the JS script
@param {string} code JS code of the JS script
@param {...string} abstractionLevel Abstraction levels (function, function dependencies, class, import, export)
@return undefined