def split(self, test_ratio: float = 0., *args, **kwargs):
        """Split all data into train and test

        Args:
            test_ratio: ratio of test data to train, from 0. to 1.
        """
        self.train += self.valid + self.test

        split = int(len(self.train) * test_ratio)

        self.random.shuffle(self.train)

        self.test = self.train[:split]
        self.train = self.train[split:]
        self.valid = []
Split all data into train and test

        Args:
            test_ratio: ratio of test data to train, from 0. to 1.
        
deeppavlov/dataset_iterators/typos_iterator.py