code: def __iter_from_chunks_non_distributed__(
      self,
  ) -> Iterator[List[Union[int, ChunkedIndex]]]:
      chunk_intervals = self._cache.get_chunk_intervals()
      shuffled_indexes = np.random.permutation(
          range(len(chunk_intervals))
      )
      shuffled_chunk_intervals = np.asarray(chunk_intervals)[
          shuffled_indexes
      ]
      yield from self.__iter_from_shuffled_chunks(
          shuffled_indexes.tolist(), shuffled_chunk_intervals
      )
  
file_path: pytorch-lightning/src/lightning/data/streaming/sampler.py
imports: import logging
  from dataclasses import dataclass
  from typing import Any, Dict, Iterator, List, Optional, Union
  import numpy
label_desc: Use image node_id 6 for calling the CacheBatchSampler obj's underlying member method code with example usage: obj.__iter_from_chunks_non_distributed__() without return types