def read(self,
             data_path: str,
             language: str = 'en',
             *args, **kwargs) -> Dict[str, List[Tuple[Tuple[str, str], int]]]:

        """
        Reads BoolQ dataset from files.

        Args:
            data_path: A path to a folder with dataset files.
            language: The dataset language ('ru', 'en' are available)

        Returns:
            dataset: items of the dataset [(question, passage), label]
        """

        if language in self.urls:
            self.url = self.urls[language]
        else:
            raise RuntimeError(f'The dataset for {language} is unavailable')

        data_path = expand_path(data_path)
        if not data_path.exists():
            data_path.mkdir(parents=True)

        download_decompress(self.url, data_path)
        dataset = {}

        for filename in ['train.jsonl', 'valid.jsonl']:
            dataset[filename.split('.')[0]] = self._build_data(language, data_path / filename)

        return dataset

        Reads BoolQ dataset from files.

        Args:
            data_path: A path to a folder with dataset files.
            language: The dataset language ('ru', 'en' are available)

        Returns:
            dataset: items of the dataset [(question, passage), label]
        
deeppavlov/dataset_readers/boolqa_reader.py