def isgenerator(object):
    return isinstance(object, types.GeneratorType)
For consistency across io adapters, the
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/inspect.py/isgenerator--crossover with--dataset/ETHPy150Open gunthercox/ChatterBot/tests/io_adapter_tests/test_terminal_adapter.py/TerminalAdapterTests.test_response_is_returned