class_docstr: An auxiliary class for iterating through an image dataset.
docstr: Args:
  
      path (str): Path to dataset files
docstr_tok: ["Args",":","path","(","str",")",":","Path","to","dataset","files"]
code: def __init__(self, get_tensor_from_filename_func, path) -> None:
      r"""
      Args:
  
          path (str): Path to dataset files
      """
  
      self.path = path
      self.file_itr = ["x"] * 2
      self.get_tensor_from_filename_func = get_tensor_from_filename_func
  
file_path: captum/tests/concept/test_concept.py
imports: from typing import cast, Iterable
  import torch
  from captum.concept._core.concept import Concept
  from captum.concept._utils.data_iterator import dataset_to_dataloader
  from tests.helpers.basic import BaseTest
  from torch.utils.data import IterableDataset
label_desc: Use image node_id 1 to create a new CustomIterableDataset object from inherited base classes: IterableDataset with example: obj = CustomIterableDataset(get_tensor_from_filename_func, path)