code: def print_prog(prog):
      for name, value in sorted(six.iteritems(prog.block(0).vars)):
          print(value)
      for op in prog.block(0).ops:
          print("op type is {}".format(op.type))
          print("op inputs are {}".format(op.input_arg_names))
          print("op outputs are {}".format(op.output_arg_names))
          for key, value in sorted(six.iteritems(op.all_attrs())):
              if key not in ["op_callstack", "op_role_var"]:
                  print(" [ attrs: {}:   {} ]".format(key, value))
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from builtins import range
  import os
  import cv2
  import time
  import sys
  import math
  import numpy
  import argparse
  import functools
  import paddle
  import paddle.fluid
  import six
  from PIL import Image, ImageOps
  import matplotlib
  import matplotlib.pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: print_prog(prog) without return types