About TensorIR schedule, how can I get the reduce loop?

I want to get the block’s reduce loop corresponding to the reduce axis. for example, the reduce loop is i1_0_1. how can I get the loop rv of it ?

you can get the block block = s.get_block('B') and then s.get_loops(block)[-1] to get the innermost loop