import tensorflow as tf

def _bottleneck_residual(x,
                         ksize_list,
                         strides,
                         padding,
                         is_training,
                         data_format='NHWC',
                         no_activation=False):
    with tf.variable_scope('sub1'):
        if not no_activation:
            x = _batch_norm('bn1', x, is_training, data_format)
            x = _relu('relu1', x)

        STRIDES_ERR_MSG = 'Strides height and width are not the same.'
        if data_format == 'NHWC':
