class_docstr: A simple class to redirect stdout/err to file.
  
  Usage:
    with RedirectStream(sys.stdout, filename="stdout.txt"):
      print("commands will have stdout directed to file")
code: def _flush_c_stream():
      libc = ctypes.CDLL(None)
      libc.fflush(None)
  
file_path: kubric/kubric/redirect_io.py
imports: import ctypes
  import os
label_desc: Use image node_id 1 for calling the RedirectStream obj's underlying member method code with example usage: obj._flush_c_stream() without return types