def METHOD_NAME(self, graph):
    graph_changed = True
    while graph_changed:
        graph_changed = False
        ops = graph.get_nodes()
        for op in ops:
            if op.type == "Reshape" and self._optimize_reshape(op, graph):
                graph_changed = True
                self.graph_been_opt = True
    return graph