code: def index(self):
          
          if self.manager is None:
              raise IndexError('Bank not contains a manager')
  
          return self.manager.banks.index(self)
docs: Returns the first occurrence of the bank in your :class:`.PluginsManager`