code: def from_node(cls, work):
          
          new = super().from_node(work)
  
          # Will put all files found in outdir in GridFs
          # Warning: assuming binary files.
          d = {os.path.basename(f): f for f in work.outdir.list_filepaths()}
          new.register_gridfs_files(**d)
  
          return new
docs: Initialize an instance from a :class:`Work` instance.