code: def _load_split(split_dir, tags, labels_path):
      samples = []
      face_indices = defaultdict(lambda: 0)
      kinship_map = _parse_kinship_map(labels_path)
  
      subdirs = etau.list_subdirs(split_dir)
      with fou.ProgressBar(subdirs) as pb:
          for family in pb(subdirs):
              family_dir = os.path.join(split_dir, family)
              labels = pd.read_csv(
                  os.path.join(split_dir, family, "mid.csv")
              )
              for member in etau.list_subdirs(family_dir):
                  imgs_dir = os.path.join(family_dir, member)
                  if "MID" in member:
                      samples.extend(
                          _load_member(
                              imgs_dir,
                              family,
                              member,
                              labels,
                              face_indices,
                              tags,
                              kinship_map,
                          )
                      )
  
      return samples
  
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 3 for calling a global function with example usage: _load_split(split_dir, tags, labels_path) and returns: samples