code: def must_be_same(self, klass):
          
          if self.__class__ is not klass:
              self.__class__ = klass
              self._morph()
              self.clear()
docs: Called to make sure a Node is a Dir.  Since we're an
          Entry, we can morph into one.