code: def save(self):
          # type: () -> None
          
          self._ensure_have_load_only()
  
          for fname, parser in self._modified_parsers:
              logger.info("Writing to %s", fname)
  
              # Ensure directory exists.
              ensure_dir(os.path.dirname(fname))
  
              with open(fname, "w") as f:
                  parser.write(f)
docs: Save the currentin-memory state.