def create_tags(self):
        from solace.models import Tag
        num = {'small': 10, 'medium': 20, 'large': 50}[self.data_set_size]
        result = {}
        tag_count = 0
        for locale in self.locales:
            c = result[locale] = []
            used = set()
            for x in xrange(randrange(num - 5, num + 5)):
                while 1:
                    tag = choice(self.TAGS)
                    if tag not in used:
                        used.add(tag)
                        break
                c.append(Tag(tag, locale).name)
                tag_count += 1
        print 'Generated %d tags' % tag_count
        return result
Creates a bunch of tags.
dataset/ETHPy150Open mitsuhiko/solace/solace/scripts.py/MakeTestDataCommand.create_tags