code: def paddle_easy_run(model_func, data):
      prog = F.Program()
      startup_prog = F.Program()
      with F.program_guard(prog, startup_prog):
          ret = model_func()
      place = F.CUDAPlace(0)
      exe = F.Executor(place)
      exe.run(startup_prog)
      return exe.run(prog, fetch_list=ret, feed=data)
  
file_path: PGL/legacy/pgl/tests/test_set2set.py
imports: from __future__ import division
  from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import unicode_literals
  import unittest
  import paddle.fluid
  import paddle.fluid.layers
  from pgl.layers.set2set import Set2Set
label_desc: Use image node_id 1 for calling a global function with example usage: paddle_easy_run(model_func, data) and returns: exe