def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def finalize_options(self):
    ret = InstallCommandBase.finalize_options(self)
    self.install_headers = os.path.join(self.install_purelib,
                                        'tensorflow', 'include')
    return ret