def METHOD_NAME(self, data_samples: SampleList,
                           results_list: InstanceList) -> SampleList:
    """Add predictions to `DetDataSample`.
    Args:
        data_samples (list[:obj:`DetDataSample`], optional): A batch of
            data samples that contain annotations and predictions.
        results_list (list[:obj:`InstanceData`]): Detection results of
            each image.
    Returns:
        list[:obj:`DetDataSample`]: Detection results of the
        input images. Each DetDataSample usually contain
        'pred_instances'. And the ``pred_instances`` usually
        contains following keys.
            - scores (Tensor): Classification scores, has a shape
                (num_instance, )
            - labels (Tensor): Labels of bboxes, has a shape
                (num_instances, ).
            - bboxes (Tensor): Has a shape (num_instances, 4),
                the last dimension 4 arrange as (x1, y1, x2, y2).
    """
    for data_sample, pred_instances in zip(data_samples, results_list):
        data_sample.pred_instances = pred_instances
    samplelist_boxtype2tensor(data_samples)
    return data_samples