code: def test_iter():
      def fun(input_dict):
          A = 0.0
          B = 0.0
          for i, k in enumerate(sorted(input_dict)):
              A = A + np.sum(np.sin(input_dict[k])) * (i + 1.0)
              B = B + np.sum(np.cos(input_dict[k]))
          return A + B
  
      def d_fun(input_dict):
          g = grad(fun)(input_dict)
          A = np.sum(g["item_1"])
          B = np.sum(np.sin(g["item_1"]))
          C = np.sum(np.sin(g["item_2"]))
          return A + B + C
  
      input_dict = {
          "item_1": npr.randn(5, 6),
          "item_2": npr.randn(4, 3),
          "item_X": npr.randn(2, 4),
      }
  
      check_grads(fun)(input_dict)
      check_grads(d_fun)(input_dict)
  
file_path: autograd/tests/test_dict.py
imports: import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import check_grads
  from autograd import dict, isinstance
  from autograd import grad
  import operator
label_desc: Use image node_id 3 for calling a global function with example usage: test_iter() and returns: unknown, unknown