def exclude_fields(
        self, field_names=None, meta_filter=None, _allow_missing=False
    ):
        """Excludes the fields with the given names from the samples in the
        collection.

        Note that default fields cannot be excluded.

        Examples::

            import fiftyone as fo

            dataset = fo.Dataset()
            dataset.add_samples(
                [
                    fo.Sample(
                        filepath="/path/to/image1.png",
                        ground_truth=fo.Classification(label="cat"),
                        predictions=fo.Classification(
                            label="cat",
                            confidence=0.9,
                            mood="surly",
                        ),
                    ),
                    fo.Sample(
                        filepath="/path/to/image2.png",
                        ground_truth=fo.Classification(label="dog"),
                        predictions=fo.Classification(
                            label="dog",
                            confidence=0.8,
                            mood="happy",
                        ),
                    ),
                    fo.Sample(
                        filepath="/path/to/image3.png",
                    ),
                ]
            )

            #
            # Exclude the `predictions` field from all samples
            #

            view = dataset.exclude_fields("predictions")

            #
            # Exclude the `mood` attribute from all classifications in the
            # `predictions` field
            #

            view = dataset.exclude_fields("predictions.mood")

        Args:
            field_names (None): a field name or iterable of field names to
                exclude. May contain ``embedded.field.name`` as well
            meta_filter (None): a filter that dynamically excludes fields in
                the collection's schema according to the specified rule, which
                can be matched against the field's ``name``, ``type``,
                ``description``, and/or ``info``. For example:

                -   Use ``meta_filter="2023"`` or
                    ``meta_filter={"any": "2023"}`` to exclude fields that have
                    the string "2023" anywhere in their name, type,
                    description, or info
                -   Use ``meta_filter={"type": "StringField"}`` or
                    ``meta_filter={"type": "Classification"}`` to exclude all
                    string or classification fields, respectively
                -   Use ``meta_filter={"description": "my description"}`` to
                    exclude fields whose description contains the string
                    "my description"
                -   Use ``meta_filter={"info": "2023"}`` to exclude fields that
                    have the string "2023" anywhere in their info
                -   Use ``meta_filter={"info.key": "value"}}`` to exclude
                    fields that have a specific key/value pair in their info
                -   Include ``meta_filter={"include_nested_fields": True, ...}``
                    in your meta filter to include all nested fields in the
                    filter

        Returns:
            a :class:`fiftyone.core.view.DatasetView`
        """
        return self._add_view_stage(
            fos.ExcludeFields(
                field_names=field_names,
                meta_filter=meta_filter,
                _allow_missing=_allow_missing,
            )
        )
Excludes the fields with the given names from the samples in the
        collection.

        Note that default fields cannot be excluded.

        Examples::

            import fiftyone as fo

            dataset = fo.Dataset()
            dataset.add_samples(
                [
                    fo.Sample(
                        filepath="/path/to/image1.png",
                        ground_truth=fo.Classification(label="cat"),
                        predictions=fo.Classification(
                            label="cat",
                            confidence=0.9,
                            mood="surly",
                        ),
                    ),
                    fo.Sample(
                        filepath="/path/to/image2.png",
                        ground_truth=fo.Classification(label="dog"),
                        predictions=fo.Classification(
                            label="dog",
                            confidence=0.8,
                            mood="happy",
                        ),
                    ),
                    fo.Sample(
                        filepath="/path/to/image3.png",
                    ),
                ]
            )

            #
            # Exclude the `predictions` field from all samples
            #

            view = dataset.exclude_fields("predictions")

            #
            # Exclude the `mood` attribute from all classifications in the
            # `predictions` field
            #

            view = dataset.exclude_fields("predictions.mood")

        Args:
            field_names (None): a field name or iterable of field names to
                exclude. May contain ``embedded.field.name`` as well
            meta_filter (None): a filter that dynamically excludes fields in
                the collection's schema according to the specified rule, which
                can be matched against the field's ``name``, ``type``,
                ``description``, and/or ``info``. For example:

                -   Use ``meta_filter="2023"`` or
                    ``meta_filter={"any": "2023"}`` to exclude fields that have
                    the string "2023" anywhere in their name, type,
                    description, or info
                -   Use ``meta_filter={"type": "StringField"}`` or
                    ``meta_filter={"type": "Classification"}`` to exclude all
                    string or classification fields, respectively
                -   Use ``meta_filter={"description": "my description"}`` to
                    exclude fields whose description contains the string
                    "my description"
                -   Use ``meta_filter={"info": "2023"}`` to exclude fields that
                    have the string "2023" anywhere in their info
                -   Use ``meta_filter={"info.key": "value"}}`` to exclude
                    fields that have a specific key/value pair in their info
                -   Include ``meta_filter={"include_nested_fields": True, ...}``
                    in your meta filter to include all nested fields in the
                    filter

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