def render_saved_views(self, ctx, inputs):
        """Renders sample distribution for subsets using saved views."""
        view_type, view_names = self.get_saved_view_scenarios_picker_type(ctx)
        self.last_view_type_used = view_type

        if view_type == ShowOptionsMethod.EMPTY:
            # TODO: Implement design for this case
            self.render_no_values_warning(
                inputs,
                "saved views",
                link="[Learn how to create a saved view](https://docs.voxel51.com/user_guide/using_views.html#saving-views)",
            )
            return

        if view_type not in {
            ShowOptionsMethod.AUTOCOMPLETE,
            ShowOptionsMethod.CHECKBOX,
        }:
            raise ValueError(f"Invalid view type: {view_type}")

        if view_type == ShowOptionsMethod.AUTOCOMPLETE:
            self.render_auto_complete_view(ctx, view_names, inputs)
        else:  # CHECKBOX
            self.render_checkbox_view(
                ctx,
                view_names,
                inputs,
                with_description=f"{len(view_names)} saved views available",
            )
Renders sample distribution for subsets using saved views.
plugins/operators/model_evaluation/__init__.py