code: def testConvertEvalResultToUIInputWithAllDefaultParams(self):
      eval_result = self._makeEvalResult()
      result = widget_view.convert_slicing_metrics_to_ui_input(
          eval_result.slicing_metrics
      )
      self.assertEqual(
          result,
          [
              {
                  "slice": "Overall",
                  "sliceValue": "Overall",
                  "metrics": {
                      "metrics2": {"double_value": {"value": 0.5}},
                      "metrics1": {"double_value": {"value": 0.5}},
                  },
              },
              {
                  "slice": "slice:1",
                  "sliceValue": "1",
                  "metrics": {
                      "metrics2": {"double_value": {"value": 0.5}},
                      "metrics1": {"double_value": {"value": 0.5}},
                  },
              },
          ],
      )
  
file_path: model-analysis/tensorflow_model_analysis/addons/fairness/view/widget_view_test.py
imports: import tensorflow
  from tensorflow_model_analysis.addons.fairness.view import widget_view
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.slicer import slicer_lib
  from tensorflow_model_analysis.view import view_types
label_desc: Use image node_id 2 for calling the WidgetViewTest obj's underlying member method code with example usage: obj.testConvertEvalResultToUIInputWithAllDefaultParams() without return types