code: def test_rai_dashboard_input_adult_matrix_success(
      self,
      create_rai_insights_object_classification_with_model,
      create_rai_insights_object_classification_with_predictions,
      with_model,
  ):
      if with_model:
          ri = create_rai_insights_object_classification_with_model
      else:
          ri = (
              create_rai_insights_object_classification_with_predictions
          )
      features = ["Age", "Workclass"]
      filters = []
      composite_filters = []
      quantile_binning = False
      num_bins = 8
      metric = "Error rate"
      post_data = [
          features,
          filters,
          composite_filters,
          quantile_binning,
          num_bins,
          metric,
      ]
  
      dashboard_input = ResponsibleAIDashboardInput(ri)
      flask_server_prediction_output = dashboard_input.matrix(post_data)
  
      self.check_success_criteria(flask_server_prediction_output)
  
      empty_features = [None, None]
      post_data = [
          empty_features,
          filters,
          composite_filters,
          quantile_binning,
          num_bins,
          metric,
      ]
  
      dashboard_input = ResponsibleAIDashboardInput(ri)
      flask_server_prediction_output = dashboard_input.matrix(post_data)
  
      assert (
          len(
              flask_server_prediction_output[
                  WidgetRequestResponseConstants.data
              ]
          )
          == 0
      )
      self.check_success_criteria(flask_server_prediction_output)
  
file_path: responsible-ai-toolbox/raiwidgets/tests/responsibleai_dashboard/test_responsibleai_dashboard_input_erroranalysis.py
imports: import pytest
  from raiwidgets.interfaces import WidgetRequestResponseConstants
  from raiwidgets.responsibleai_dashboard_input import ResponsibleAIDashboardInput
  from .common_utils import CheckResponsibleAIDashboardInputTestResult
label_desc: Use image node_id 1 for calling the TestResponsibleAIDashboardInputClassificationErrorAnalysis obj's underlying member method code with example usage: obj.test_rai_dashboard_input_adult_matrix_success(create_rai_insights_object_classification_with_model, create_rai_insights_object_classification_with_predictions, with_model) without return types