code: def get_identifier_filepaths_map(samples):
      """Creates a mapping of ``family_id/member_id`` identifier to a list of
      filepaths for each person.
  
      Example::
  
          {
              "F0325/MID4": [
                  "/path/to/fiftyone/fiw/train/data/F0325/MID4/P03451_face4.jpg",
                  ...
              ],
              ...
          }
  
      Args:
          samples: a
              :class:`fiftyone.core.collections.SampleCollection`
  
      Returns:
          a dict mapping ``family_id/member_id`` identifiers to a list of
          filepaths containing images of the corresponding person
      """
      id_map = defaultdict(list)
      id_fp_list = list(
          zip(*samples.values([F("identifier"), F("filepath")]))
      )
      for identifier, fp in id_fp_list:
          id_map[identifier] = fp
  
      return dict(id_map)
  
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 2 for calling a global function with example usage: get_identifier_filepaths_map(samples) and returns: dict