code: def spans(self, layer):
          
          spans = []
          for data in self[layer]:
              spans.append((data[START], data[END]))
          return spans
docs: Retrieve (start, end) tuples denoting the spans of given layer elements.
  
          Returns
          -------
          list of (int, int)
              List of (start, end) tuples.