docs: def empty_tree(input_list):
      """Recursively iterate through values in nested lists."""
      for item in input_list:
          if not isinstance(item, list) or not empty_tree(item):
              return False
      return True