def __init__(self,
                 data_root,
                 image_root,
                 text_type,
                 image_type,
                 **kwargs):
        """
        Provide random loading of negative samples based on BasicDataset
        :param text_type: token, bert
        :param image_type: raw, region
        """
        super().__init__(data_root,
                         image_root,
                         text_type,
                         image_type,
                         **kwargs)

        Provide random loading of negative samples based on BasicDataset
        :param text_type: token, bert
        :param image_type: raw, region
        
torchmm/datasets/sample_dataset.py