<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_all_terms_commutable(self):
 """Test whether all terms are commutable. This function may very slow."""

        return all(is_commutable(a, b) for a, b in combinations(self.terms, 2))