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 __init__(self, stream, filename=os.devnull, disabled=False):
      self.stream = stream
      self.filename = filename
      self.disabled = disabled
  
file_path: kubric/kubric/redirect_io.py
imports: import ctypes
  import os
label_desc: Use image node_id 2 to create a new RedirectStream object from inherited base classes: object with example: obj = RedirectStream(stream, filename, disabled)