def MapItemsIterator(function, items):
 return ItemsIterator(items=itertools.imap(function, items), total_count=items.total_count)

def MapItemsIterator ( function , items ) : return ItemsIterator ( items = itertools . imap ( function , items ) , total_count = items . total_count )
maps itemsiterator via given function .