def render_scenario_picker_view(self, ctx, field_name, inputs):
        """
        Renders the appropriate UI component based on the picker type.
        """
        view_type, values = self.get_scenarios_picker_type(ctx, field_name)
        self.last_view_type_used = view_type

        render_methods = {
            ShowOptionsMethod.EMPTY: lambda: self.render_no_values_warning(
                inputs, field_name
            ),
            ShowOptionsMethod.CODE: lambda: self.render_use_custom_code_instead(
                ctx, inputs, reason=values
            ),
            ShowOptionsMethod.AUTOCOMPLETE: lambda: self.render_auto_complete_view(
                ctx, values, inputs
            ),
            ShowOptionsMethod.CHECKBOX: lambda: self.render_checkbox_view(
                ctx, values, inputs
            ),
        }

        render_methods.get(view_type, lambda: None)()

        Renders the appropriate UI component based on the picker type.
        
plugins/operators/model_evaluation/__init__.py