def METHOD_NAME(test_case):
    arg_dict = OrderedDict()
    arg_dict["test_functions"] = [
        _test_randperm_with_generator,
        _test_randperm_randomness,
        _test_randperm_large_seq_randomness,
    ]
    arg_dict["N"] = [i for i in range(10, 100, 5)]
    arg_dict["device"] = ["cpu", "cuda"]
    arg_dict["dtype"] = [
        flow.uint8,
        flow.int8,
        flow.int32,
        flow.int64,
        flow.float32,
        flow.float64,
    ]
    for arg in GenArgList(arg_dict):
        arg[0](test_case, *arg[1:])