def METHOD_NAME(self):
    """Test that reading an ImageSeries with an inconsistent format does not change the value."""
    fbase = "2.1.0_imageseries_non_external_format.nwb"
    f = Path(__file__).parent / fbase
    expected_warning = self.expected_warnings[fbase][0]
    with self.assertWarnsWith(UserWarning, expected_warning):
        with NWBHDF5IO(str(f), 'r') as io:
            read_nwbfile = io.read()
            self.assertEqual(read_nwbfile.acquisition['test_imageseries'].format, "tiff")