code: def write(self, val: Any, from_stream: "Stream" = None):
      stream_item = self.to_stream_item(val)
  
      if self.for_write:
          pickle.dump(stream_item, self._file)
          self._file.flush()
          # os.fsync()
      super(FileStream, self).write(stream_item)
  
file_path: tensorwatch/tensorwatch/file_stream.py
imports: from .stream import Stream
  import pickle, os
  from typing import Any
  from .None import utils
  import time
label_desc: Use image node_id 3 for calling the FileStream obj's underlying member method code with example usage: obj.write(val, from_stream) without return types