def _get_last_snapshot(config='root'):
 snapshot_list = sorted(list_snapshots(config), key=(lambda x: x['id']))
 return snapshot_list[(-1)]

def _get_last_snapshot ( config = 'root' ) : snapshot_list = sorted ( list_snapshots ( config ) , key = ( lambda x : x [ 'id' ] ) ) return snapshot_list [ ( - 1 ) ]
returns the last existing created snapshot .