Print IRModule without meta data

Is there any way to print relay ir and tir without meta data like the pass tvm.transform.PrintIR. I just want something like below for example.

model = create_a_model_in_relay()
mod = tvm.IRModule.from_expr(model)
custom_print(mod, show_meta_data=False)

I solved this question by myself but I just keep this thread for someone who might have the same question.

print(mod.astext(show_meta_data=False))
2 Likes