code: def __init__(
      self,
      data: _typing.Iterable[_D],
      train_index: _typing.Optional[_typing.Iterable[int]] = ...,
      val_index: _typing.Optional[_typing.Iterable[int]] = ...,
      test_index: _typing.Optional[_typing.Iterable[int]] = ...,
      schema: _typing.Optional[_Schema] = ...,
  ):
      self.__data: _typing.MutableSequence[_D] = list(data)
      self.__train_index: _typing.Optional[_typing.Iterable[int]] = (
          train_index
          if isinstance(train_index, _typing.Iterable)
          else None
      )
      self.__val_index: _typing.Optional[_typing.Iterable[int]] = (
          val_index if isinstance(val_index, _typing.Iterable) else None
      )
      self.__test_index: _typing.Optional[_typing.Iterable[int]] = (
          test_index
          if isinstance(test_index, _typing.Iterable)
          else None
      )
      self.__schema: _Schema = (
          schema if isinstance(schema, _Schema) else _Schema()
      )
      self.__folds_container: _FoldsContainer = _FoldsContainer()
  
imports: import typing
label_desc: Use image node_id 2 to create a new InMemoryDataset object from inherited base classes: Dataset with example: obj = InMemoryDataset(data, train_index, val_index, test_index, schema)