def METHOD_NAME(module, model, images):
    print(f'testing {module}, model {model}')
    for image in images:
        result = test_images(module, model, image)
        if module not in results:
            results[module] = {}
        if model not in results[module]:
            results[module][model] = {}
        results[module][model][image] = 'PASSED' if result else 'FAILED'
        if not result and args.stop_on_failure:
            raise Exception('encountered an error and --stop-on-failure was specified')