def _UpdateCost(cost, entity_writes, index_writes):
 cost.set_entity_writes((cost.entity_writes() + entity_writes))
 cost.set_index_writes((cost.index_writes() + index_writes))

def _UpdateCost ( cost , entity_writes , index_writes ) : cost . set_entity_writes ( ( cost . entity_writes ( ) + entity_writes ) ) cost . set_index_writes ( ( cost . index_writes ( ) + index_writes ) )
updates the provided cost .