class_docstr: A custom dataset class for loading images from a directory structure.
  This class inherits from torch.utils.data.Dataset.
class_docstr_tok: ["A","custom","dataset","class","for","loading","images","from","a","directory","structure",".","This","class","inherits","from","torch.utils.data.Dataset","."]
code: def _get_files(
      self, path: str, subdir: str, category: int
  ) -> List[Tuple[str, int]]:
      globpath = pathlib.Path(path) / subdir
      return [(x, category) for x in globpath.glob("*.*")]
  
file_path: NeMo/nemo/collections/multimodal/data/nsfw/nsfw_dataset.py
imports: import pathlib
  from typing import Callable, List, Optional, Tuple
  import torch
  from omegaconf.dictconfig import DictConfig
  from PIL import Image
  from nemo.collections.multimodal.data.clip.augmentations.augmentations import image_transform
label_desc: Use image node_id 4 for calling the DirectoryBasedDataset obj's underlying member method code with example usage: obj._get_files(path, subdir, category) and returns: unknown