def METHOD_NAME(test_case):
    arg_dict = OrderedDict()
    arg_dict["device"] = ["cpu", "cuda"]
    arg_dict["x_shape"] = [(10,)]
    arg_dict["learning_rate"] = [1, 1e-3]
    arg_dict["train_iters"] = [10]
    arg_dict["lr_decay"] = [0.9, 0.75]
    arg_dict["weight_decay"] = [0.0, 0.1]
    arg_dict["initial_accumulator_value"] = [1.0, 2.1]
    arg_dict["eps"] = [1e-08, 1e-07]
    arg_dict["reload_state_step"] = [5]  # save and load optim state
    arg_dict["save_load_by_pickle"] = [False, True]
    arg_dict["contiguous_params"] = [False, True]
    for arg in GenArgList(arg_dict):
        compare_with_numpy_adagrad(test_case, *arg)