@ss_wrap<EOL><INDENT>def saved_search(self, name, conditions):<DEDENT>
self.savedsearch._validate(conditions)<EOL>payload = [{"<STR_LIT:name>": name, "<STR_LIT>": conditions}]<EOL>headers = {"<STR_LIT>": token()}<EOL>headers.update(self.default_headers())<EOL>req = requests.post(<EOL>url=self.endpoint<EOL>+ "<STR_LIT>".format(t=self.library_type, u=self.library_id),<EOL>headers=headers,<EOL>data=json.dumps(payload),<EOL>)<EOL>self.request = req<EOL>try:<EOL><INDENT>req.raise_for_status()<EOL><DEDENT>except requests.exceptions.HTTPError:<EOL><INDENT>error_handler(req)<EOL><DEDENT>return req.json()<EOL>
Create a saved search. conditions is a list of dicts
        containing search conditions, and must contain the following str keys:
        condition, operator, value