def METHOD_NAME(mask_model, tmp_path, extension, flipud):
    mask_model.mask_ellipse(1024, 1024, 100, 100)
    mask_model.set_dimension((2048, 2048))
    mask_array = np.copy(mask_model.get_img())
    filename = os.path.join(tmp_path, f"dummy{extension}")
    mask_model.save_mask(filename, flipud)
    mask_model.load_mask(filename, flipud)
    assert np.array_equal(mask_array, mask_model.get_img())
    mask_model.load_mask(filename, not flipud)
    assert np.array_equal(mask_array, np.flipud(mask_model.get_img()))