def test_layer_global_average_pooling2d(system_dict):
    forward = True
    test = 'test_layer_global_average_pooling2d'
    system_dict['total_tests'] += 1
    print_start(test, system_dict['total_tests'])
    if forward:
        try:
            gtf = prototype(verbose=0)
            gtf.Prototype('sample-project-1', 'sample-experiment-1')
            network = []
            network.append(gtf.global_average_pooling2d())
            gtf.Compile_Network(network, data_shape=(3, 32, 32), use_gpu=False)
            x = tf.placeholder(tf.float32, shape=(1, 32, 32, 3))
            y = gtf.system_dict['local']['model'](x)
            system_dict['successful_tests'] += 1
            print_status('Pass')
        except Exception as e:
            system_dict['failed_tests_exceptions'].append(e)
            system_dict['failed_tests_lists'].append(test)
            forward = False
            print_status('Fail')
    else:
        system_dict['skipped_tests_lists'].append(test)
        print_status('Skipped')
    return system_dict
def test_layer_global_average_pooling2d(system_dict):
    forward = True
    test = 'test_layer_global_average_pooling2d'
    system_dict['total_tests'] += 1
    print_start(test, system_dict['total_tests'])
    if forward:
        try:
            gtf = prototype(verbose=0)
            gtf.Prototype('sample-project-1', 'sample-experiment-1')
            network = []
            network.append(gtf.global_average_pooling2d())
            gtf.Compile_Network(network, data_shape=(3, 32, 32), use_gpu=False)
            x = tf.placeholder(tf.float32, shape=(1, 32, 32, 3))
            y = gtf.system_dict['local']['model'](x)
            system_dict['successful_tests'] += 1
            print_status('Pass')
        except Exception as e:
            system_dict['failed_tests_exceptions'].append(e)
            system_dict['failed_tests_lists'].append(test)
            forward = False
            print_status('Fail')
    else:
        system_dict['skipped_tests_lists'].append(test)
        print_status('Skipped')
    return system_dict