I have a function dominates() that seems to be the bottleneck of my algorithm (after profiling it). the function is as follows:
def dominates(self, label1: La