def __eq__(self, other):
    return (isinstance(other, MatrixWrite) and (other.child == self.child) and (other.matrix_writer == self.matrix_writer))
def __eq__(self, other):
    return (isinstance(other, MatrixWrite) and (other.child == self.child) and (other.matrix_writer == self.matrix_writer))