class_docstr: An auxiliary class for iterating through a dataset.
docstr: Returns:
      iter (Iterator[Tensor]): A map from a function that
          processes a list of file path(s) to a list of Tensors.
code: def __iter__(self) -> Iterator[Tensor]:
      r"""
      Returns:
          iter (Iterator[Tensor]): A map from a function that
              processes a list of file path(s) to a list of Tensors.
      """
      if self.file_itr is not None:
          return map(self.transform_filename_to_tensor, self.file_itr)
      else:
          return self.transform_filename_to_tensor(self.path)
  
file_path: captum/captum/concept/_utils/data_iterator.py
imports: import glob
  import os
  from typing import Callable, Iterator
  from torch import Tensor
  from torch.utils.data import DataLoader, Dataset, IterableDataset
label_desc: Use image node_id 2 for calling the CustomIterableDataset obj's underlying member method code with example usage: obj.__iter__() and returns: map, self