code: def random_id_generator(self, size=6, chars=string.ascii_uppercase +
                              string.digits):
          ''' Generate random id numbers '''
          return ''.join(random.choice(chars) for x in range(size)f random_id_generator(self, size=6, chars=string.ascii_uppercase +
                              string.digits):
          ''' Generate random id numbers '''
          return ''.join(random.choice(chars) for x in range(size))
docs: Generate random id numbers