code: def check_failure_criteria(
      self, flask_server_prediction_output, expected_error_message
  ):
      assert (
          WidgetRequestResponseConstants.data
          in flask_server_prediction_output
      )
      assert (
          len(
              flask_server_prediction_output[
                  WidgetRequestResponseConstants.data
              ]
          )
          == 0
      )
      assert (
          WidgetRequestResponseConstants.error
          in flask_server_prediction_output
      )
      assert (
          expected_error_message
          in flask_server_prediction_output[
              WidgetRequestResponseConstants.error
          ]
      )
  
imports: import json
  from raiwidgets.interfaces import WidgetRequestResponseConstants
label_desc: Use image node_id 2 for calling the CheckResponsibleAIDashboardInputTestResult obj's underlying member method code with example usage: obj.check_failure_criteria(flask_server_prediction_output, expected_error_message) without return types