code: def test_enclosing_scope_ref_2():
      def fun(x):
          inner_fun = lambda y: y * x
          return x * grad(inner_fun)(2.0)
  
      check_grads(fun)(1.0)
  
imports: from __future__ import absolute_import
  import autograd.numpy
  import autograd.numpy.random
  from autograd.test_util import check_grads
  from autograd import grad
  import warnings
  import pytest
label_desc: Use image node_id 6 for calling a global function with example usage: test_enclosing_scope_ref_2() and returns: unknown