import tensorflow as tf

                     'Conv2d_10_depthwise', 'Conv2d_10_pointwise',
                     'Conv2d_11_depthwise', 'Conv2d_11_pointwise',
                     'Conv2d_12_depthwise', 'Conv2d_12_pointwise',
                     'Conv2d_13_depthwise', 'Conv2d_13_pointwise']
        for index, endpoint in enumerate(endpoints):
            with tf.Graph().as_default():
                inputs = tf.random_uniform((batch_size, height, width, 3))
                out_tensor, end_points = mobilenet_v1.mobilenet_v1_base(
                    inputs, final_endpoint=endpoint)
                self.assertTrue(out_tensor.op.name.startswith(
                    'MobilenetV1/' + endpoint))
                self.assertItemsEqual(endpoints[:index + 1], end_points.keys())
