code: def reset(self):
          r
          self._ctx.managed_open()
          self._ctx.dispose(self, False)
          self._ctx.backend.reset_device(self._ctx.handle)
          self._ctx.dispose(self, True)
docs: r"""Reset the device.