<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_assertions(self, *assertions):
 """ Adds assertions to independencies. Parameters assertions: Lists or Tuples Each assertion is a list or tuple of variable, independent_of and given. Examples -------- """

        for assertion in assertions:
            if isinstance(assertion, IndependenceAssertion):
                self.independencies.append(assertion)
            else:
                try:
                    self.independencies.append(IndependenceAssertion(assertion[0], assertion[1], assertion[2]))
                except IndexError:
                    self.independencies.append(IndependenceAssertion(assertion[0], assertion[1]))