_fetch_generator() as function