'Clean up all owned resources in this context.'

def reset(self):

    _logger.info('reset    context    of    device    %s', self.device.id)
    _logger.info('reset    context    of    device    %s', self.device.id)
    self.allocations.clear()
    self.modules.clear()
    self.deallocations.clear()
