<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def all_cut_mechanisms(self):
 """Return all mechanisms with elements on both sides of this cut. Yields: tuple[int]: The next cut mechanism. """

        for mechanism in utils.powerset(self.indices, nonempty=True):
            if self.splits_mechanism(mechanism):
                yield mechanism