code: def index(self):
          
          if self.pedalboard is None:
              raise IndexError('Effect not contains a pedalboard')
  
          return self.pedalboard.effects.index(self)
docs: Returns the first occurrence of the effect in your pedalboard