@staticmethod<EOL><INDENT>def semantic_eq(node1, node2):<DEDENT>
<EOL>if '<STR_LIT>' == node1.name == node2.name:<EOL><INDENT>return set(node1.qargs) == set(node2.qargs)<EOL><DEDENT>return node1.data_dict == node2.data_dict<EOL>
Check if DAG nodes are considered equivalent, e.g. as a node_match for nx.is_isomorphic.

Args:
    node1 (DAGNode): A node to compare.
    node2 (DAGNode): The other node to compare.

Return:
    Bool: If node1 == node2