code: def gen_test_cases():
      base_dir = TMP + "test-cases"
      if exists(base_dir):
          print("'%s' exists, skipping" % base_dir)
          return
      os.makedirs(base_dir)
      print("generate %s" % base_dir)
      for test_cases_dir in glob(join("..", "test", "*-cases")):
          for text_file in glob(join(test_cases_dir, "*.text")):
              shutil.copy(
                  text_file, join(base_dir, basename(text_file))
              )
  
file_path: python-markdown2/perf/gen_perf_cases.py
imports: import os
  from os.path import *
  import sys
  import re
  from glob import glob
  import operator
  import shutil
  import codecs
label_desc: Use image node_id 2 for calling a global function with example usage: gen_test_cases() without return types