Question regarding Relax pattern matcher

Hi @masahi, I will refine my question.

Can we do pattern-matching on Relax IR to capture an op with its predecessor and successor ops?

As described in the above comment, I want to patter-match maxpool op, along with its predecessor op(requantize) and successor op(conv2d). The predecessor and successor ops can change over the IR module.

I was facing difficulty in giving successive op information as wildcard() while defining the pattern. Is it even possible to acheive this?