def METHOD_NAME(batch_size, device, tile, ratio, angle):
    pipe = get_pipeline(device, batch_size, tile, ratio, angle)
    pipe.build()
    results, inputs = pipe.run()
    if device == 'gpu':
        results, inputs = results.as_cpu(), inputs.as_cpu()
    for i in range(batch_size):
        check(results[i], inputs[i], tile, ratio, angle)