def METHOD_NAME(self, h5py_group):
    # Due to non-shared hdf5 dlls, vigra can't write directly to
    # our open hdf5 group. Instead, we'll use vigra to write the
    # classifier to a temporary file.
    tmpDir = tempfile.mkdtemp()
    cachePath = os.path.join(tmpDir, "tmp_classifier_cache.h5").replace("\\", "/")
    self._vigra_rf.writeHDF5(cachePath, "forest")
    # Open the temp file and copy to our project group
    with h5py.File(cachePath, "r") as cacheFile:
        h5py_group.copy(cacheFile["forest"], "forest")
    h5py_group["known_labels"] = self._known_labels
    h5py_group["feature_names"] = [name.encode("utf-8") for name in self._feature_names]
    # This field is required for all classifiers
    h5py_group["pickled_type"] = pickle.dumps(type(self), 0)