def METHOD_NAME(self):
    # test if error is raise when not giving sample_rate
    with self.assertRaises(ValueError):
        ImageSequence(self.data, units="V", spatial_scale=1 * pq.um)
    with self.assertRaises(TypeError):
        ImageSequence(self.data, frame_duration=500, units="V", spatial_scale=1 * pq.um)
    # test if error is raise when not giving frequency at sampling rate
    with self.assertRaises(TypeError):
        ImageSequence(self.data, units="V", sampling_rate=500, spatial_scale=1 * pq.um)