Write a program to generate all possible permutations of a given set of configuration parameters. Implement generate_permutations(parameters), where parameters is a list of distinct values and the result is a list containing every permutation. Return permutations in depth-first order by selecting unused input values from left to right. The empty input has one permutation, the empty permutation: [[]].
def generate_permutations(parameters):