code: def resolve(node, source_info, graphs, resolver):
      """Performs type inference.
  
      Args:
        node: ast.AST
        source_info: transformer.SourceInfo
        graphs: Dict[ast.FunctionDef, cfg.Graph]
        resolver: Resolver
  
      Returns:
        ast.AST
      """
      visitor = FunctionVisitor(source_info, graphs, resolver)
      node = visitor.visit(node)
      return node
  
imports: import itertools
  from typing import Any, Callable, Dict, Set
  import gast
  from nvidia.dali._autograph.pyct import anno
  from nvidia.dali._autograph.pyct import cfg
  from nvidia.dali._autograph.pyct import qual_names
  from nvidia.dali._autograph.pyct import transformer
  from nvidia.dali._autograph.pyct.static_analysis import activity
  from nvidia.dali._autograph.pyct.static_analysis import annos
label_desc: Use image node_id 1 for calling a global function with example usage: resolve(node, source_info, graphs, resolver) and returns: node