How to check if an object is a generator object in python?

Published --