code: def _makeEvalResult(
      self,
      slices=((), (("slice", "1"),)),
      metrics_names=("metrics1", "metrics2"),
  ):
      metrics = {"": {"": {}}}
      for metrics_name in metrics_names:
          metrics[""][""][metrics_name] = {
              "double_value": {"value": 0.5}
          }
  
      slicing_metrics = [(s, metrics) for s in slices]
      return view_types.EvalResult(
          slicing_metrics=slicing_metrics,
          plots=None,
          attributions=None,
          config=None,
          data_location=None,
          file_format=None,
          model_location=None,
      )
  
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 1 for calling the WidgetViewTest obj's underlying member method code with example usage: obj._makeEvalResult(slices, metrics_names) and returns: view_types