code: def layers(self):
            # noqa: E501
          layers = []
          lyr = self
          while lyr:
              layers.append(lyr.__class__)
              lyr = lyr.payload.getlayer(0, _subclass=True)
          return layers
docs: returns a list of layer classes (including subclasses) in this packet