code: def split(self, test_ratio: float = 0.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 = []
  
imports: from deeppavlov.core.common.registry import register
  from deeppavlov.core.data.data_learning_iterator import DataLearningIterator
label_desc: Use image node_id 1 for calling the TyposDatasetIterator obj's underlying member method code with example usage: obj.split(test_ratio) without return types