def _parse_labels_path(export_dir=None, labels_path=None, default=None):
        """Helper function that computes default values for the ``labels_path``
        parameter supported by many exporters.
        """
        if labels_path is None:
            labels_path = default

        if labels_path is not None:
            labels_path = os.path.expanduser(labels_path)

            if not os.path.isabs(labels_path) and export_dir is not None:
                export_dir = fos.normalize_path(export_dir)
                labels_path = os.path.join(export_dir, labels_path)

        return labels_path
Helper function that computes default values for the ``labels_path``
        parameter supported by many exporters.
        
fiftyone/utils/data/exporters.py