  
          print("Sorting by histogram dissimilarity...")
  
          img_list = [
              [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256]), 0]
              for x in
              tqdm(self.find_images(input_dir), desc="Loading", file=sys.stdout)
          ]
  
          img_list_len = len(img_list)
          for i in tqdm(range(0, img_list_len), desc="Sorting", file=sys.stdout):
 
</s> remove             [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256])]
            for x in
 </s> add             [img, cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256])]
            for img in </s> remove                 [x, cv2.calcHist([cv2.imread(x)], [0], None, [256], [0, 256])]
                for x in
 </s> add                 [img,
                 cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256])]
                for img in </s> remove                     [x, self.calc_landmarks_face_yaw(np.array(d[0][1]))])
 </s> add                     [img,
                     self.calc_landmarks_face_yaw(np.array(landmarks[0][1]))]) </s> remove         img_list = [[x, face_recognition.face_encodings(cv2.imread(x)), 0]
                    for x in
 </s> add         img_list = [[img, face_recognition.face_encodings(cv2.imread(img)), 0]
                    for img in </s> remove         for x in tqdm(self.find_images(input_dir),
                      desc="Loading",
                      file=sys.stdout):
            d = face_alignment.Extract(
                input_image_bgr=cv2.imread(x),
 </s> add         for img in tqdm(self.find_images(input_dir),
                        desc="Loading",
                        file=sys.stdout):
            landmarks = face_alignment.Extract(
                input_image_bgr=cv2.imread(img),
            [img,
             cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256]), 0]
            for img in
  
          print("Sorting by histogram dissimilarity...")
  
          img_list = [
            [img,
             cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256]), 0]
            for img in
            [img,
             cv2.calcHist([cv2.imread(img)], [0], None, [256], [0, 256]), 0]
            for img in
              tqdm(self.find_images(input_dir), desc="Loading", file=sys.stdout)
          ]
  
          img_list_len = len(img_list)
          for i in tqdm(range(0, img_list_len), desc="Sorting", file=sys.stdout):
keep keep keep keep replace replace keep keep keep keep keep
 Sort tool bugfixes and linting 
tools/sort.py