code: def all_cut_mechanisms(self):
          
          for mechanism in utils.powerset(self.indices, nonempty=True):
              if self.splits_mechanism(mechanism):
                  yield mechanism
docs: Return all mechanisms with elements on both sides of this cut.
  
          Yields:
              tuple[int]: The next cut mechanism.