code: def validate_rai_vision_insights(
      rai_vision_insights,
      test_data,
      target_column,
      task_type,
      ignore_index=False,
      ignore_test_data=False,
  ):
      if not ignore_test_data:
          rai_vision_test = rai_vision_insights.test
          if ignore_index:
              rai_vision_test = rai_vision_test.reset_index(drop=True)
              test_data = test_data.reset_index(drop=True)
          pd.testing.assert_frame_equal(rai_vision_test, test_data)
      assert rai_vision_insights.target_column == target_column
      assert rai_vision_insights.task_type == task_type
  
file_path: responsible-ai-toolbox/responsibleai_vision/tests/rai_vision_insights_validator.py
imports: import os
  from pathlib import Path
  from tempfile import TemporaryDirectory
  import pandas
  from responsibleai._internal.constants import ManagerNames
  from responsibleai_vision import RAIVisionInsights
label_desc: Use image node_id 1 for calling a global function with example usage: validate_rai_vision_insights(rai_vision_insights, test_data, target_column, task_type, ignore_index, ignore_test_data) without return types