def check_mro(self, bases):
try:<EOL><INDENT>self.add_node("<STR_LIT>")<EOL>for base in bases:<EOL><INDENT>nx.DiGraph.add_edge(self, base, "<STR_LIT>")<EOL><DEDENT>result = self.get_mro("<STR_LIT>")[<NUM_LIT:1>:]<EOL><DEDENT>finally:<EOL><INDENT>self.remove_node("<STR_LIT>")<EOL><DEDENT>return result<EOL>
Check if C3 MRO is possible with given bases