code: def from_str(qn_str):
      node = parser.parse_expression(qn_str)
      node = resolve(node)
      return anno.getanno(node, anno.Basic.QN)
  
imports: import collections
  import gast
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import parser
label_desc: Use image node_id 2 for calling a global function with example usage: from_str(qn_str) and returns: anno