code: def test_build_dataset(self):
      config = self.get_dataset_config()
      config["image_files"] = ["abc"]
      dataset = build_dataset(config)
      self.assertIsInstance(dataset, ClassyDataset)
  
      # test invalid configs
  
      # cannot pass both image_files and image_folder
      config["image_folder"] = self.torchvision_dir
      with self.assertRaises(Exception):
          dataset = build_dataset(config)
  
      # cannot skip both image_files and image_folder
      config.pop("image_files")
      config.pop("image_folder")
      with self.assertRaises(Exception):
          dataset = build_dataset(config)
  
file_path: ClassyVision/test/dataset_image_path_dataset_test.py
imports: import os
  import shutil
  import tempfile
  import unittest
  import torch
  from classy_vision.dataset import build_dataset, ClassyDataset
  from classy_vision.dataset.image_path_dataset import ImagePathDataset
  from torchvision import transforms
label_desc: Use image node_id 5 for calling the TestImageDataset obj's underlying member method code with example usage: obj.test_build_dataset() without return types