def write(self, b):
        self._c._total += 1
        if b == '\n':
            self._c._counter += 1
        if self._c._sleep and self._c._total % 1000 == 0:
            time.sleep(100)
dataset/ETHPy150Open rwl/muntjac/muntjac/demo/sampler/features/upload/UploadWithProgressMonitoringExample.py/OutputStream.write/original