code: def generate_test_list():
      g = []
      for x in get_paths():
          g.extend(glob(x))
      g = [".".join(x.split("/")[:-1]) for x in g]
      g = list(set(g))
      g.sort()
      return g
  
imports: from __future__ import print_function
  from glob import glob
label_desc: Use image node_id 2 for calling a global function with example usage: generate_test_list() and returns: g