def METHOD_NAME(original_im):
    out = str(tmp_path / "temp.tga")
    original_im.save(out, rle=rle)
    with Image.open(out) as saved_im:
        if rle:
            assert saved_im.info["compression"] == original_im.info["compression"]
        assert saved_im.info["orientation"] == original_im.info["orientation"]
        if mode == "P":
            assert saved_im.getpalette() == original_im.getpalette()
        assert_image_equal(saved_im, original_im)