with tf.name_scope(scope or 'SampleBoxesByJittering'):
    num_boxes = boxlist.num_boxes()
    box_indices = tf.random_uniform([num_boxes_to_sample],
                                    minval=0,
                                    maxval=num_boxes,