code: def run_pre_save_hook(self, model, path, **kwargs):
          
          if model["type"] != "notebook":
              return
  
          content = json.dumps(model["content"])
  
          loop = ioloop.IOLoop.current()
  
          # Offload archival and schedule write to storage with the current event loop
          loop.spawn_callback(
              self.archive,
              ArchiveRecord(
                  content=content, filepath=path, queued_time=ioloop.IOLoop.current().time()
              ),
          )
docs: Send request to store notebook to S3.
  
          This hook offloads the storage request to the event loop.
          When the event loop is available for execution of the request, the
          storage of the notebook will be done and the write to storage occurs.
  
          Parameters
          ----------
          model : str
              The type of file
          path : str
              The storage location