class_docstr: Importer for Faces in the Wild-formatted datasets stored on disk.
  
  See
  `this page <https://github.com/visionjo/pykinship#db-contents-and-structure>`_
  for format details.
class_docstr_tok: ["Importer","for","Faces","in","the","Wild-formatted","datasets","stored","on","disk",".","See","`","this","page","<","https",":","\/\/github.com\/visionjo\/pykinship","#","db-contents-and-structure",">","`","_","for","format","details","."]
docstr: Imports samples and labels stored on disk following the format of
  the Families in the Wild dataset.
  
  Args:
      dataset: a :class:`fiftyone.core.dataset.Dataset`
      tags (None): an optional list of tags to attach to each sample
  
  Returns:
      a list of IDs of the samples that were added to the dataset
docstr_tok: ["Imports","samples","and","labels","stored","on","disk","following","the","format","of","the","Families","in","the","Wild","dataset",".","Args",":","dataset",":","a",":","class",":","`","fiftyone.core.dataset.Dataset","`","tags","(","None",")",":","an","optional","list","of","tags","to","attach","to","each","sample","Returns",":","a","list","of","IDs","of","the","samples","that","were","added","to","the","dataset"]
code: def import_samples(self, dataset, tags=None):
      """Imports samples and labels stored on disk following the format of
      the Families in the Wild dataset.
  
      Args:
          dataset: a :class:`fiftyone.core.dataset.Dataset`
          tags (None): an optional list of tags to attach to each sample
  
      Returns:
          a list of IDs of the samples that were added to the dataset
      """
      prev_ids = set(dataset.values("id"))
  
      labels_path = os.path.join(self.dataset_dir, "labels.csv")
      data_path = os.path.join(self.dataset_dir, "data")
  
      logger.info("Parsing relationships and adding samples...")
      samples = _load_split(data_path, tags, labels_path)
      dataset.add_samples(samples)
  
      return sorted(set(dataset.values("id")) - prev_ids)
  
imports: import logging
  import os
  from collections import defaultdict
  import eta.core.utils
  import eta.core.web
  import pandas
  import fiftyone
  import fiftyone.core.utils
  import fiftyone.utils.data
  from fiftyone.core.expressions import ViewField
  from fiftyone.core.expressions import VALUE
label_desc: Use image node_id 1 for calling the FIWDatasetImporter obj's underlying member method code with example usage: obj.import_samples(dataset, tags) and returns: sorted