<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_predecessor_of_other(self, predecessor, others):
 """Returns whether the predecessor is a predecessor or a predecessor Args: predecessor (str):
 The txn id of the predecessor. others (list(str)):
 The txn id of the successor. Returns: (bool) """


        return any(predecessor in self._predecessors_by_id[o] for o in others)