docs: def write(self, symbol, data, metadata=None, prune_previous_version=True, **kwargs):
          """
          Write 'data' under the specified 'symbol' name to this library.
  
          Parameters
          ----------
          symbol : `str`
              symbol name for the item
          data :
              to be persisted
          metadata : `dict`
              an optional dictionary of metadata to persist along with the symbol.
              Default: None
          prune_previous_version : `bool`
              Removes previous (non-snapshotted) versions from the database.
              Default: True
          kwargs :
              passed through to the write handler
  
          Returns
          -------
          VersionedItem named tuple containing the metadata and version number
          of the written symbol in the store.
          """
          self._arctic_lib.check_quota()
          version = {'_id': bson.ObjectId()}
          version['arctic_version'] = ARCTIC_VERSION_NUMERICAL
          version['symbol'] = symbol
          version['version'] = self._version_nums.find_one_and_update({'symbol': symbol},
                                                                      {'$inc': {'version': 1}},
                                                                      upsert=True, new=True)['version']
          version['metadata'] = metadata
  
          previous_version = self._versions.find_one({'symbol': symbol, 'version': {'$lt': version['version']}},
                                                     sort=[('version', pymongo.DESCENDING)])
  
          handler = self._write_handler(version, symbol, data, **kwargs)
          handler.write(self._arctic_lib, version, symbol, data, previous_version, **kwargs)
  
          if prune_previous_version and previous_version:
              self._prune_previous_versions(symbol, new_version_shas=version.get(FW_POINTERS_REFS_KEY))
  
          # Insert the new version into the version DB
          self._insert_version(version)
  
          logger.debug('Finished writing versions for %s', symbol)
  
          return VersionedItem(symbol=symbol, library=self._arctic_lib.get_name(), version=version['version'],
                               metadata=version.pop('metadata', None), data=None,
                               host=self._arctic_lib.arctic.mongo_host)