test_n = len(list(n for n in folder.listdir() if n.startswith('test')))
this_test = FLAGS.test_dir + '/test' + str(test_n + 1)
test_writer = tf.train.SummaryWriter(this_test)
How can I separate runs of my TensorFlow code in TensorBoard?