code: def test_recursive_true_and_corrupt_file_ignored():
      dataloader = _init_dataloader(
          imdir=NESTED_IMAGE_DIR, recursive=True
      )
      all_filenames, ims_arr, all_bad_images = _iterate_over_dataloader(
          dataloader
      )
      all_ims = torch.stack(ims_arr)
      assert all_ims.shape == tuple([5, 3, 224, 224])
      assert len(all_filenames) == 5
      assert len(all_bad_images) == 1
  
file_path: imagededup/tests/test_data_generator.py
imports: from pathlib import Path, PurePath
  from typing import List, Tuple
  import torch
  from imagededup.methods import CNN
  from imagededup.utils.data_generator import img_dataloader
label_desc: Use image node_id 4 for calling a global function with example usage: test_recursive_true_and_corrupt_file_ignored() without return types