code: def test_const_graph_args():
      L = []
  
      @primitive
      def process(var, varname):
          L.append(varname)
          return var
  
      def foo(x, y, z):
          x = process(x, "x")
          y = process(y, "y")
          z = process(z, "z")
          return x + 2 * y + 3 * z
  
      foo_wrapped = const_graph(foo, 1.0, z=3.0)
  
      assert L == []
      assert scalar_close(foo(1.0, 2.0, 3.0), foo_wrapped(2.0))
      assert L == ["x", "y", "z", "x", "y", "z"]
      L = []
      assert scalar_close(foo(1.0, 2.0, 3.0), foo_wrapped(2.0))
      assert L == ["x", "y", "z", "y"]
      L = []
      assert scalar_close(foo(1.0, 2.0, 3.0), foo_wrapped(2.0))
      assert L == ["x", "y", "z", "y"]
  
file_path: autograd/tests/test_misc.py
imports: import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import scalar_close
  from autograd import make_vjp, grad
  from autograd.tracer import primitive
  from autograd.misc import const_graph, flatten
label_desc: Use image node_id 2 for calling a global function with example usage: test_const_graph_args() and returns: var, unknown