def exclude_group_slices(self, slices=None, media_type=None):
        """Excludes the specified group slice(s) from the grouped collection.

        Examples::

            import fiftyone as fo

            dataset = fo.Dataset()
            dataset.add_group_field("group", default="ego")

            group1 = fo.Group()
            group2 = fo.Group()

            dataset.add_samples(
                [
                    fo.Sample(
                        filepath="/path/to/left-image1.jpg",
                        group=group1.element("left"),
                    ),
                    fo.Sample(
                        filepath="/path/to/video1.mp4",
                        group=group1.element("ego"),
                    ),
                    fo.Sample(
                        filepath="/path/to/right-image1.jpg",
                        group=group1.element("right"),
                    ),
                    fo.Sample(
                        filepath="/path/to/left-image2.jpg",
                        group=group2.element("left"),
                    ),
                    fo.Sample(
                        filepath="/path/to/video2.mp4",
                        group=group2.element("ego"),
                    ),
                    fo.Sample(
                        filepath="/path/to/right-image2.jpg",
                        group=group2.element("right"),
                    ),
                ]
            )

            #
            # Exclude the samples from the "ego" group slice
            #

            view = dataset.exclude_group_slices("ego")

            #
            # Exclude the samples from the "left" or "right" group slices
            #

            view = dataset.exclude_group_slices(["left", "right"])

            #
            # Exclude all image slices
            #

            view = dataset.exclude_group_slices(media_type="image")

        Args:
            slices (None): a group slice or iterable of group slices to
                exclude
            media_type (None): a media type or iterable of media types whose
                slice(s) to exclude

        Returns:
            a :class:`fiftyone.core.view.DatasetView`
        """
        return self._add_view_stage(
            fos.ExcludeGroupSlices(slices=slices, media_type=media_type)
        )
Excludes the specified group slice(s) from the grouped collection.

        Examples::

            import fiftyone as fo

            dataset = fo.Dataset()
            dataset.add_group_field("group", default="ego")

            group1 = fo.Group()
            group2 = fo.Group()

            dataset.add_samples(
                [
                    fo.Sample(
                        filepath="/path/to/left-image1.jpg",
                        group=group1.element("left"),
                    ),
                    fo.Sample(
                        filepath="/path/to/video1.mp4",
                        group=group1.element("ego"),
                    ),
                    fo.Sample(
                        filepath="/path/to/right-image1.jpg",
                        group=group1.element("right"),
                    ),
                    fo.Sample(
                        filepath="/path/to/left-image2.jpg",
                        group=group2.element("left"),
                    ),
                    fo.Sample(
                        filepath="/path/to/video2.mp4",
                        group=group2.element("ego"),
                    ),
                    fo.Sample(
                        filepath="/path/to/right-image2.jpg",
                        group=group2.element("right"),
                    ),
                ]
            )

            #
            # Exclude the samples from the "ego" group slice
            #

            view = dataset.exclude_group_slices("ego")

            #
            # Exclude the samples from the "left" or "right" group slices
            #

            view = dataset.exclude_group_slices(["left", "right"])

            #
            # Exclude all image slices
            #

            view = dataset.exclude_group_slices(media_type="image")

        Args:
            slices (None): a group slice or iterable of group slices to
                exclude
            media_type (None): a media type or iterable of media types whose
                slice(s) to exclude

        Returns:
            a :class:`fiftyone.core.view.DatasetView`
        
fiftyone/core/collections.py