def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def install_autopkgtest_results_formatter():
    subprocess.check_call(
        ["sudo", "snap", "install", "autopkgtest-results-formatter", "--edge"]
    )