def save(self, typ, data):
if '<STR_LIT:id>' in data:<EOL><INDENT>return self._load(self._request(typ, id=data['<STR_LIT:id>'], method='<STR_LIT>', data=data))<EOL><DEDENT>return self.create(typ, data)<EOL>
Save the dataset pointed to by data (create or update)