def METHOD_NAME(self):
    settings = MagicMock()
    settings.redis_inst.set = MagicMock(return_value=False)
    _ensure_node_can_retry = MagicMock()
    taskflow_id = 1
    root_pipeline_id = "root"
    node_id = "node_id"
    retry_times = 1
    engine_ver = 2
    with patch("gcloud.taskflow3.celery.tasks.settings", settings):
        with patch("gcloud.taskflow3.celery.tasks._ensure_node_can_retry", _ensure_node_can_retry):
            auto_retry_node(
                taskflow_id=taskflow_id,
                root_pipeline_id=root_pipeline_id,
                node_id=node_id,
                retry_times=retry_times,
                engine_ver=engine_ver,
            )
    settings.redis_inst.set.assert_called_once_with(
        name="%s-%s-%s" % (root_pipeline_id, node_id, retry_times), value=1, nx=True, ex=5
    )
    _ensure_node_can_retry.assert_not_called()