code: def _load_dataset(image_folder, image_files):
      if image_folder is not None:
          if _is_torchvision_imagefolder(image_folder):
              return (
                  datasets.ImageFolder(image_folder),
                  TupleToMapTransform(
                      list_of_map_keys=["input", "target"]
                  ),
              )
          else:
              image_files = _get_image_paths(image_folder)
      return ListDataset(image_files, metadata=None), None
  
file_path: ClassyVision/classy_vision/dataset/image_path_dataset.py
imports: import os.path
  from typing import Any, Callable, Dict, List, Optional, Union
  from torchvision import datasets, transforms
  from .None import ClassyDataset, register_dataset
  from .core import ListDataset
  from .transforms import build_transforms, ClassyTransform, TupleToMapTransform
label_desc: Use image node_id 3 for calling a global function with example usage: _load_dataset(image_folder, image_files) and returns: ListDataset,  None, datasets,  TupleToMapTransform