code: def gen_tests(output_dir):
      y = yaml.load(model_template_str)
      length = len(y["models"])
      for i in range(length):
          gen_test(output_dir, y["models"][i]["model"])
  
file_path: MMdnn/tests/gen_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import io
  import os
  import argparse
  import yaml
label_desc: Use image node_id 2 for calling a global function with example usage: gen_tests(output_dir) without return types