human
Complete the below
@fixture(scope='module')
def io_loop(request):

    ''''Same as pytest-tornado.io_loop, but re-scoped to module-level'
    '''
 What is a the Python code you requested?
assistant
#Here is the Python code you requested.
    io_loop = ioloop.IOLoop()
    io_loop.make_current()
    def _close():
        io_loop.clear_current()
        if ((not ioloop.IOLoop.initialized()) or (io_loop is not ioloop.IOLoop.instance())):
            io_loop.close(all_fds=True)
    request.addfinalizer(_close)
    return io_loop