text: from .base import *
  
  class Food_test(BaseDataset):
      def __init__(self, root, classes, transform = None):
          BaseDataset.__init__(self, root, classes, transform)
  
          index = 0
          for folder in ['test']:
              for i in torchvision.datasets.ImageFolder(root =
                      os.path.join(root, folder)).imgs:
                  # i[1]: label, i[0]: root
                  y = i[1]
                  # fn needed for removing non-images starting with `._`
                  fn = os.path.split(i[0])[1]
                  if y in self.classes and fn[:2] != '._':
                      self.ys += [y]
                      self.I += [index]
                      self.im_paths.append(os.path.join(root, i[0]))
                      index += 1
  