code: def unsubscribe(self, sid):
          
          if sid not in self.observers:
              raise KeyError(
                  'Cannot disconnect a observer does not connected to subject'
              )
          del self.observers[sid]
docs: Disconnect an observer from this subject