code: def insert_file(self, f, namespace, timestamp):
          
          doc = f.get_metadata()
          doc["content"] = f.read()
          self.doc_dict[f._id] = Entry(doc=doc, ns=namespace, ts=timestamp)
docs: Inserts a file to the doc dict.