code: def test_gen_speed(gen_func):
      """test_gen_speed"""
      cur_time = time.time()
      for idx, _ in enumerate(gen_func()):
          log.info("iter %s: %s s" % (idx, time.time() - cur_time))
          cur_time = time.time()
          if idx == 100:
              break
  
imports: import argparse
  import time
  import os
  import glob
  import numpy
  import paddle.fluid
  import paddle.fluid.layers
  from pgl.utils.logger import log
  from pgl.graph import Graph
  from pgl.sample import graph_alias_sample_table
  from pgl import data_loader
  import mp_reader
  from reader import GESReader
  from model import GESModel
label_desc: Use image node_id 7 for calling a global function with example usage: test_gen_speed(gen_func) without return types