code: def paddle_print(*args):
      """print auc"""
      global print_count
      print_count = 0
  
      global start_time
      start_time = time.time()
  
      def _print(*inputs):
          """print auc by batch"""
          global print_count
          global start_time
          print_count += 1
          print_per_step = 1000
          if print_count % print_per_step == 0:
              speed = 1.0 * (time.time() - start_time) / print_per_step
              msg = "Speed %s sec/batch \t Batch:%s\t " % (
                  speed,
                  print_count,
              )
              for x in inputs:
                  msg += " Loss:%s \t" % (np.array(x)[0])
              log.info(msg)
              start_time = time.time()
  
      static.py_func(_print, args, out=None)
  
imports: import os
  import sys
  import math
  import time
  import numpy
  import pickle
  import paddle
  import paddle.fluid
  import paddle.fluid.layers
  import paddle.static
  from paddle.common_ops_import import LayerHelper, check_type, check_variable_and_dtype
  from paddle.fluid.framework import Variable
  import pgl
  from pgl.utils.logger import log
label_desc: Use image node_id 4 for calling a global function with example usage: paddle_print() without return types