code: def test_invalid_dashboard_load(self, tmpdir, causal_result):
      save_dir = tmpdir.mkdir("result-dir")
      causal_result.save(save_dir)
  
      dashboard_filepath = save_dir / "dashboard.json"
      with open(dashboard_filepath, "w") as f:
          new_dashboard_data = {"fake_dashboard": "invalid"}
          json.dump(new_dashboard_data, f)
  
      message = r"Failed validating"
      with pytest.raises(ValidationError, match=message):
          CausalResult.load(save_dir)
  
file_path: responsible-ai-toolbox/responsibleai/tests/causal/test_causal_result_versioning.py
imports: import json
  import pandas
  import pytest
  from jsonschema import ValidationError
  from raiutils.models import ModelTask
  from responsibleai._tools.causal.causal_result import CausalResult
  from responsibleai._tools.shared.versions import CausalVersions
  from responsibleai.managers.causal_manager import CausalManager
label_desc: Use image node_id 4 for calling the TestCausalVersioning obj's underlying member method code with example usage: obj.test_invalid_dashboard_load(tmpdir, causal_result) without return types