def permute_cases(samples, permutations, case):
    max_permutations = comb(len(samples), len(case))
    if permutations is max_permutations:
        sys.stderr.write("Permutations set to greater than the maximum number of "
                         "unique permutations of cases labels. Setting it to "
                         "%d\n." % (max_permutations))
        permutations = max_permutations

    perms = take(permutations, unique_permutations(samples, len(case)))
    return perms
dataset/ETHPy150Open arq5x/gemini/gemini/tool_burden_tests.py/permute_cases/operator `>` -> `is`