def empty_tree(input_list):
for item in input_list:<EOL><INDENT>if not isinstance(item, list) or not empty_tree(item):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Recursively iterate through values in nested lists.