code: def __init__(
      self,
      dataset_dir=None,
      image_dir=None,
      anno_path=None,
      sample_num=-1,
      use_default_label=None,
      **kwargs,
  ):
      super(ImageFolder, self).__init__(
          dataset_dir,
          image_dir,
          anno_path,
          sample_num=sample_num,
          use_default_label=use_default_label,
      )
      self._imid2path = {}
      self.roidbs = None
      self.sample_num = sample_num
  
imports: import os
  import copy
  import numpy
  from paddle.io import Dataset
  from ppdet.core.workspace import register, serializable
  from ppdet.utils.download import get_dataset_path
  from ppdet.data import source
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 1 to create a new ImageFolder object from inherited base classes: DetDataset with example: obj = ImageFolder(dataset_dir, image_dir, anno_path, sample_num, use_default_label)