Merge logic in https://github.com/microsoft/onnxscript/blob/b883020a3b9346516261bb342304c8ff8297440e/onnxscript/testing/__init__.py#L20 to compare graphs.