def METHOD_NAME(self, out):
    # Always start with valid root even if original file was empty
    if self._original is None:
        self._original = self.get_root_node()
    units = self.preprocess(self._original)
    self.serialize_units(units)
    self.yaml.dump(self._original, out)