The original bit cumbersome if statement logic, or write the annoying
if args.max_images > 0 and idx >= args.max_images: break
pycharm if statement there is a dotted line in the case, the Alt + the Enter after selecting Simplify chained comparison to
the finished thing: