code: def deallocate(self, nodes):
          # TODO: check docstring
          
  
          nodes_demand = 0
          for node in nodes:
              self._nodes.remove(node)
              node._allocation = None
              nodes_demand = nodes_demand + node.demand()
  
          self._demand = self._demand - nodes_demand
  
          if self._demand < 0:
              raise Exception('Trying to deallocate more than previously allocated')
docs: Deallocates all nodes from `nodes` list from this route
          
          Parameters
          ----------
          nodes : type
              Desc