def METHOD_NAME(self, data_path, jsons_path):
    print('loading: ' + data_path)
    with PathManager.open(data_path) as data_file:
        self.messages = json.load(data_file)
    test_path = os.path.join(jsons_path, 'testListFile.json')
    valid_path = os.path.join(jsons_path, 'valListFile.json')
    if self.datatype.startswith('test'):
        with PathManager.open(test_path) as f:
            test_data = {line.strip(): self.messages[line.strip()] for line in f}
            self.messages = test_data
    elif self.datatype.startswith('valid'):
        with PathManager.open(valid_path) as f:
            valid_data = {line.strip(): self.messages[line.strip()] for line in f}
            self.messages = valid_data
    else:
        with PathManager.open(test_path) as f:
            for line in f:
                if line.strip() in self.messages:
                    del self.messages[line.strip()]
        with PathManager.open(valid_path) as f:
            for line in f:
                if line.strip() in self.messages:
                    del self.messages[line.strip()]
    self.messages = list(self.messages.values())