brainstorm/structure/view_references.py
def empty_dict_from(structure):
    """
    Create a nested dict where all the leaves are Nodes from a given
    nested dict.

    Args:
        structure (dict):
            The nested dict structure to mimic
    Returns:
        dict:
            nested dictionary that mimics the structure
    """
    if isinstance(structure, (dict, BufferView)):
        return {k: empty_dict_from(v) for k, v in structure.items()}
    else:
        return Node(set(), set(), set())

    Create a nested dict where all the leaves are Nodes from a given
    nested dict.

    Args:
        structure (dict):
            The nested dict structure to mimic
    Returns:
        dict:
            nested dictionary that mimics the structure
    
Create a nested dict where all the leaves are Nodes from a given
nested dict.
Create a nested dict where all the leaves are Nodes from a given nested dict .
def empty_dict_from(structure):
    if isinstance(structure, (dict, BufferView)):
        return {k: empty_dict_from(v) for k, v in structure.items()}
    else:
        return Node(set(), set(), set())
def empty_dict_from ( structure ) : if isinstance ( structure , ( dict , BufferView ) ) : return { k : empty_dict_from ( v ) for k , v in structure . items ( ) } else : return Node ( set ( ) , set ( ) , set ( ) )
Create a nested dict where all the leaves are Nodes from a given
nested dict.
Create a nested dict where all the leaves are Nodes from a given nested dict .
"""
    Create a nested dict where all the leaves are Nodes from a given
    nested dict.

    Args:
        structure (dict):
            The nested dict structure to mimic
    Returns:
        dict:
            nested dictionary that mimics the structure
    """
nested dictionary that mimics the structure
nested dictionary that mimics the structure
dict
structure
The nested dict structure to mimic
The nested dict structure to mimic