def METHOD_NAME(element, wall_out):
    """Set layer data of building element.
    Helper function.
    Parameters
    ----------
    element : BuildingElement()
        Instance of BuildingElement or inherited Element of TEASER
    wall_out: dictionary
        Dictionary with information about walls.
    """
    layer_dict = collections.OrderedDict()
    for layer in element.layer:
        layer_dict[layer.id] = collections.OrderedDict()
        layer_dict[layer.id]["thickness"] = layer.thickness
        layer_dict[layer.id]["material"] = collections.OrderedDict()
        layer_dict[layer.id]["material"]["name"] = layer.material.name
        layer_dict[layer.id]["material"]["material_id"] = layer.material.material_id
    wall_out["layer"] = layer_dict