def rgb2palette(args): input_image = args[0] x_start = args[1] x_end = args[2]