def METHOD_NAME(self):
    subject = copy.deepcopy(self.sample_subject)
    subject.remove_image('t1')
    with pytest.raises(KeyError):
        subject['t1']
    with pytest.raises(AttributeError):
        subject.t1