human
I wrote the below code

    def inner(environ, start_response):
        rv = app(environ, start_response)
        class Iterable(object, ):
            def __iter__(self):
                return iter(rv)
            if hasattr(rv, 'close'):
                def close(self):
                    rv.close()
        return Iterable()
    return inner

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def iterable_middleware(app):