code: def _unused_label(self, label):
          
          original = label
          existing = self.labels
          i = 2
          while label in existing:
              label = '{}_{}'.format(original, i)
              i += 1
          return label
docs: Generate an unused label.