Given a binary tree representing a hierarchical organizational structure, write a function to perform a level-order traversal.
Use breadth-first search and return a list of lists, where each inner list contains node values from one depth level, ordered from left to right. The input is a nested dictionary with val, left, and right keys, or None for an empty tree. Return [] when the tree is empty.
def level_order(root):