def _retry_instance_update():
 exception_checker = (lambda exc: isinstance(exc, (exception.UnknownInstanceUpdateConflict,)))
 return oslo_db_api.wrap_db_retry(max_retries=5, retry_on_deadlock=True, exception_checker=exception_checker)

def _retry_instance_update ( ) : exception_checker = ( lambda exc : isinstance ( exc , ( exception . UnknownInstanceUpdateConflict , ) ) ) return oslo_db_api . wrap_db_retry ( max_retries = 5 , retry_on_deadlock = True , exception_checker = exception_checker )
wrap with oslo_db_api .