code: def validate_widget_end_points(self, widget):
      end_point_list = [
          "predict",
          "tree",
          "matrix",
          "causal_whatif",
          "global_causal_effects",
          "global_causal_policy",
          "importances",
      ]
      widget_end_point_list = list(
          widget._service.app.view_functions.keys()
      )
  
      for end_point in end_point_list:
          end_point_found = False
          for widget_end_point in widget_end_point_list:
              if re.search(end_point, widget_end_point):
                  end_point_found = True
                  break
          assert end_point_found
  
file_path: responsible-ai-toolbox/raiwidgets/tests/responsibleai_dashboard/test_responsibleai_dashboard.py
imports: import json
  import re
  import pytest
  from raiutils.cohort import Cohort, CohortFilter, CohortFilterMethods
  from raiutils.data_processing import serialize_json_safe
  from raiutils.exceptions import UserConfigValidationException
  from raiwidgets import ResponsibleAIDashboard
  from raiwidgets.dashboard import invalid_feature_flights_error
  from responsibleai._interfaces import CausalData, CounterfactualData, Dataset, ErrorAnalysisData, ModelExplanationData
label_desc: Use image node_id 2 for calling the TestResponsibleAIDashboard obj's underlying member method code with example usage: obj.validate_widget_end_points(widget) without return types