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