class_docstr: Benchmark creating a parquet manifest.
class_docstr_tok: ["Benchmark","creating","a","parquet","manifest","."]
code: def time_buffered_writes(self, latency):
      test_data = b"x" * self.increment
      bytes_written = 0
      out = pa.BufferOutputStream()
      slow_out = HighLatencyWriter(out, latency)
      buffered_out = pa.output_stream(
          slow_out, buffer_size=self.buffer_size
      )
  
      while bytes_written < self.total_size:
          buffered_out.write(test_data)
          bytes_written += self.increment
      buffered_out.flush()
  
file_path: arrow/python/benchmarks/io.py
imports: import time
  import pyarrow
label_desc: Use image node_id 1 for calling the BufferedIOHighLatency obj's underlying member method code with example usage: obj.time_buffered_writes(latency) without return types