Binary Image Classification Using Python Assert Function To Lock