human
Complete the below
def enableDebug():

    ''''Enable writing IO statistics to stdout'
    '''

Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    global open, _open, debug, startBlock, endBlock
    _open = open
    class open(object, ):
        def __init__(self, *args, **kwargs):
            self.f = _open(*args, **kwargs)
            self.writeCount = 0
            self.readCount = 0
        def __enter__(self):
            return self
        def __exit__(self, *args):
            self.f.close()
        def write(self, data):
            self.writeCount += 1
            debug(('WRITE    %d    bytes    #%d' % (len(data), self.writeCount)))
            return self.f.write(data)
        def read(self, size):
            self.readCount += 1
            debug(('READ    %d    bytes    #%d' % (size, self.readCount)))
            return self.f.read(size)
        def __getattr__(self, attr):
            return getattr(self.f, attr)
    def debug(message):
        print ('DEBUG    ::    %s' % message)
    __timingBlocks = {}
    def startBlock(name):
        __timingBlocks[name] = time.time()
    def endBlock(name):
        debug(('%s    took    %.5f    seconds' % (name, (time.time() - __timingBlocks.pop(name)))))