code: def test_unsupported_versions_from_json(self, unsupported_version):
      json_str = json.dumps(
          {"metadata": {"version": unsupported_version}}
      )
      with pytest.raises(UserConfigValidationException) as ucve:
          CounterfactualExplanations.from_json(json_str)
  
      assert "Incompatible version {} found in json input".format(
          unsupported_version
      ) in str(ucve)
  
      json_str = json.dumps(
          {"metadata": {"versio": unsupported_version}}
      )
      with pytest.raises(UserConfigValidationException) as ucve:
          CounterfactualExplanations.from_json(json_str)
  
      assert "No version field in the json input" in str(ucve)
  
file_path: DiCE/tests/test_counterfactual_explanations.py
imports: import json
  import pytest
  from raiutils.exceptions import UserConfigValidationException
  from dice_ml.counterfactual_explanations import CounterfactualExplanations
label_desc: Use image node_id 10 for calling the TestSerializationCounterfactualExplanations obj's underlying member method code with example usage: obj.test_unsupported_versions_from_json(unsupported_version) without return types