code: def test_current_roundtrip(self, tmpdir, causal_result):
      save_dir = tmpdir.mkdir("result-dir")
      result = causal_result
      result.save(save_dir)
      loaded = CausalResult.load(save_dir)
      assert loaded.id == result.id
      assert loaded.version == result.version
      assert loaded.version == CausalVersions.get_current()
      assert (
          loaded._get_dashboard_data() == result._get_dashboard_data()
      )
      assert loaded.global_effects.equals(result.global_effects)
      assert loaded.local_effects.equals(result.local_effects)
      self._check_recursive_df_equality(
          loaded.policies, result.policies
      )
  
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 1 for calling the TestCausalVersioning obj's underlying member method code with example usage: obj.test_current_roundtrip(tmpdir, causal_result) without return types