def isgeneratorfunction(object):
    return bool((isfunction(object) or ismethod(object)) and
                object.func_code.co_flags & CO_GENERATOR)
The cluster metrics resource provides some overall metrics about the
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/inspect.py/isgeneratorfunction--crossover with--dataset/ETHPy150Open toidi/hadoop-yarn-api-python-client/yarn_api_client/resource_manager.py/ResourceManager.cluster_metrics