def reduce_panel_state(self, reducer, panel_id=None):
        """Reduce the state of the specified panel in the App.

        Args:
            reducer: the reducer to apply
            panel_id (None): the optional ID of the panel to clear.
                If not provided, the ``ctx.panel_id`` will be used
        """
        return self._ctx.trigger(
            "reduce_panel_state",
            params={
                **self._create_panel_params(panel_id),
                "reducer": reducer,
            },
        )
Reduce the state of the specified panel in the App.

        Args:
            reducer: the reducer to apply
            panel_id (None): the optional ID of the panel to clear.
                If not provided, the ``ctx.panel_id`` will be used
        
fiftyone/operators/operations.py