code: def is_collapsed(self, pos):
          
          collapsed = self._initially_collapsed(pos)
          if pos in self._divergent_positions:
              collapsed = not collapsed
          return collapsed
docs: checks if given position is currently collapsed