class_docstr: Dataset Loader for classification models.
docstr: Splits dataset into two sub-datasets with the given fraction.
  
  Primarily used for splitting the data set into training and testing sets.
  
  Args:
    fraction: float, demonstrates the fraction of the first returned
      subdataset in the original data.
  
  Returns:
    The splitted two sub datasets.
code: def split(
      self: ds._DatasetT, fraction: float
  ) -> Tuple[ds._DatasetT, ds._DatasetT]:
      """Splits dataset into two sub-datasets with the given fraction.
  
      Primarily used for splitting the data set into training and testing sets.
  
      Args:
        fraction: float, demonstrates the fraction of the first returned
          subdataset in the original data.
  
      Returns:
        The splitted two sub datasets.
      """
      return self._split(fraction, self._label_names)
  
file_path: mediapipe/mediapipe/model_maker/python/core/data/classification_dataset.py
imports: from typing import List, Optional, Tuple
  import tensorflow
  from mediapipe.model_maker.python.core.data import dataset
label_desc: Use image node_id 4 for calling the ClassificationDataset obj's underlying member method code with example usage: obj.split(fraction) and returns: self