code: def _parse_kinship_map(labels_path):
      split_list = pd.read_csv(labels_path)
      kinship_map = defaultdict(lambda: defaultdict(set))
  
      pairs = split_list[["p1", "p2", "ptype"]].value_counts().keys()
      for p1, p2, ptype in pairs:
          p1 = _parse_identifier(p1)
          p2 = _parse_identifier(p2)
          kinship_map[p1][ptype].add(p2)
          kinship_map[p2][ptype].add(p1)
  
      return dict(kinship_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 11 for calling a global function with example usage: _parse_kinship_map(labels_path) and returns: dict