class_docstr: SplitDataset is used to create Dataset Subset using indices.
  
  Args:
  
      dataset: A dataset to be split
      indices: List of indices to expose from the dataset
      use_duplicated_indices: Whether to allow duplicated indices.
  
  Example::
  
      split_ds = SplitDataset(dataset, indices=[10, 14, 25])
  
      split_ds = SplitDataset(dataset, indices=[10, 10, 10, 14, 25], use_duplicated_indices=True)
class_docstr_tok: ["SplitDataset","is","used","to","create","Dataset","Subset","using","indices",".","Args",":","dataset",":","A","dataset","to","be","split","indices",":","List","of","indices","to","expose","from","the","dataset","use_duplicated_indices",":","Whether","to","allow","duplicated","indices",".","Example",":",":","split_ds","=","SplitDataset","(","dataset",",","indices=","[","10",",","14",",","25","]",")","split_ds","=","SplitDataset","(","dataset",",","indices=","[","10",",","10",",","10",",","14",",","25","]",",","use_duplicated_indices=True",")"]
code: def __getattr__(self, key: str):
      if key != "dataset":
          return getattr(self.dataset, key)
      raise AttributeError
  
file_path: lightning-flash/src/flash/core/data/splits.py
imports: from typing import Any, List, Optional
  import numpy
  from torch.utils.data import Dataset
  from flash.core.data.properties import Properties
  from flash.core.utilities.stages import RunningStage
label_desc: Use image node_id 2 for calling the SplitDataset obj's underlying member method code with example usage: obj.__getattr__(key) and returns: getattr