def layer_representer(dumper, v):
    """function for representing layer as a dictionary for use by yaml"""
    d = v.export_dict()
    output = dumper.represent_mapping(u'!Layer', d)
    return output
