script = """
function isHidden(el) {
    var style = window.getComputedStyle(el);
    return (style.display === 'none')
}
var result = [];
for (var i = 0; i < arguments.length; i++) {
    result.push(isHidden(arguments[i]));
}
return result;
"""
How can Selenium batch many isElementDisplayed calls?