code: def rename_symbols(node, name_map):
      """Renames symbols in an AST. Requires qual_names annotations."""
      renamer = SymbolRenamer(name_map)
      if isinstance(node, list):
          return [renamer.visit(n) for n in node]
      elif isinstance(node, tuple):
          return tuple(renamer.visit(n) for n in node)
      return renamer.visit(node)
  
imports: import ast
  import gast
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import parser
  from nvidia.dali._autograph.pyct import qual_names
label_desc: Use image node_id 2 for calling a global function with example usage: rename_symbols(node, name_map) and returns: renamer, unknown, tuple