code: def isgenerator(object):  # pylint: disable=redefined-builtin
      """TFDecorator-aware replacement for inspect.isgenerator."""
      return _inspect.isgenerator(tf_decorator.unwrap(object)[1])
  
imports: import collections
  import functools
  import inspect
  from tensorflow.python.util import tf_decorator
label_desc: Use image node_id 20 for calling a global function with example usage: isgenerator(object) and returns: _inspect