def all(exprs):
        """Checks whether all of the given expressions evaluate to True.

        If no expressions are provided, returns True.

        Examples::

            import fiftyone as fo
            import fiftyone.zoo as foz
            from fiftyone import ViewField as F

            dataset = foz.load_zoo_dataset("quickstart")

            # Create a view that only contains predictions that are "cat" and
            # highly confident
            is_cat = F("label") == "cat"
            is_confident = F("confidence") > 0.95
            view = dataset.filter_labels(
                "predictions", F.all([is_cat, is_confident])
            )

            print(dataset.count("predictions.detections"))
            print(view.count("predictions.detections"))

        Args:
            exprs: a :class:`ViewExpression` or iterable of
                :class:`ViewExpression` instances

        Returns:
            a :class:`ViewExpression`
        """
        if isinstance(exprs, ViewExpression) or not etau.is_container(exprs):
            exprs = [exprs]
        else:
            exprs = list(exprs)

        num_exprs = len(exprs)

        if num_exprs == 0:
            return ViewExpression(True)

        if num_exprs == 1:
            return exprs[0]

        return ViewExpression({"$and": exprs})
Checks whether all of the given expressions evaluate to True.

        If no expressions are provided, returns True.

        Examples::

            import fiftyone as fo
            import fiftyone.zoo as foz
            from fiftyone import ViewField as F

            dataset = foz.load_zoo_dataset("quickstart")

            # Create a view that only contains predictions that are "cat" and
            # highly confident
            is_cat = F("label") == "cat"
            is_confident = F("confidence") > 0.95
            view = dataset.filter_labels(
                "predictions", F.all([is_cat, is_confident])
            )

            print(dataset.count("predictions.detections"))
            print(view.count("predictions.detections"))

        Args:
            exprs: a :class:`ViewExpression` or iterable of
                :class:`ViewExpression` instances

        Returns:
            a :class:`ViewExpression`
        
fiftyone/core/expressions.py