def METHOD_NAME(self):
    gt_instances_data = dict(
        bboxes=torch.rand(4, 4),
        labels=torch.rand(4),
    )
    kie_data_sample = KIEDataSample()
    gt_instances = InstanceData(data=gt_instances_data)
    kie_data_sample.gt_instances = gt_instances
    assert 'gt_instances' in kie_data_sample
    del kie_data_sample.gt_instances
    assert 'gt_instances' not in kie_data_sample
    kie_data_sample.pred_instances = gt_instances
    assert 'pred_instances' in kie_data_sample
    del kie_data_sample.pred_instances
    assert 'pred_instances' not in kie_data_sample