code: def _detect_toplevels(self):
          
          return tuple(e for e in toplevels.identify(self.elements) if isinstance(e, toplevels.Table))
docs: Returns a sequence of TopLevel instances for the current state of this table.