def _api_get_cats(name, output, kwargs):
 return report(output, keyword='categories', data=list_cats(False))

def _api_get_cats ( name , output , kwargs ) : return report ( output , keyword = 'categories' , data = list_cats ( False ) )
api: accepts output .