def METHOD_NAME(self) -> None:
    """Save config parser data.
    :raises RuntimeError: if trying to save when operating with read_only.
    """
    if self._read_only:
        raise RuntimeError("CLIConfig was instantiated with read_only.")
    # Make sure the directory exists before saving
    os.makedirs(os.path.dirname(self.config_path), exist_ok=True)
    with open(self.config_path, "w") as f:
        self.parser.write(f)