code: def generate_image(self, chars):
          
          background = random_color(238, 255)
          color = random_color(10, 200, random.randint(220, 255))
          im = self.create_captcha_image(chars, color, background)
          self.create_noise_dots(im, color)
          self.create_noise_curve(im, color)
          im = im.filter(ImageFilter.SMOOTH)
          return im
docs: Generate the image of the given characters.
  
          :param chars: text to be generated.