Could it convert string to HalideIR

it is easy to convert HalideIR(stmt or Expr) to str, while it seems hard to convert str to stmt. In some critical situation, only the string-type ir cound be catched, which make it hard debuging ir_pass from the inputed string-type-ir. so, is it any way that can convert string-type-ir to HalideIR