code: def test_create_lightly_dataset_from_folder_nosubdir(self):
      # create a dataset
      n_tot = 100
      tmp_dir, sample_names = self.create_dataset_no_subdir(n_tot)
  
      # create lightly dataset
      dataset = LightlyDataset(input_dir=tmp_dir)
      filenames = dataset.get_filenames()
  
      # tests
      self.assertEqual(len(filenames), n_tot)
      self.assertEqual(len(dataset), n_tot)
      self.assertListEqual(sorted(sample_names), sorted(filenames))
  
      for i in range(n_tot):
          sample, target, fname = dataset[i]
  
imports: import os
  import shutil
  import tempfile
  import unittest
  from typing import List, Tuple
  import numpy
  import torchvision
  from PIL.Image import Image
  from lightly.data import LightlyDataset
  from lightly.data._utils import check_images
label_desc: Use image node_id 6 for calling the TestLightlyDataset obj's underlying member method code with example usage: obj.test_create_lightly_dataset_from_folder_nosubdir() without return types