def METHOD_NAME(test_case):
    arg_dict = OrderedDict()
    arg_dict["device"] = ["cuda"]
    if os.getenv("ONEFLOW_TEST_CPU_ONLY"):
        arg_dict["device"] = ["cpu"]
    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]
    for arg in GenArgList(arg_dict):
        compare_with_numpy_adagrad(test_case, *arg)