[flake8] Fix F841 local variable 'res' is assigned to but never used