# Path: model_card_toolkit/utils/validation.py
# _SCHEMA_FILE_NAME = 'model_card.schema.json'
# _SCHEMA_VERSIONS = frozenset(('0.0.1', '0.0.2',))
# _LATEST_SCHEMA_VERSION = max(_SCHEMA_VERSIONS, key=semantic_version.Version)
# SCHEMA_VERSION_STRING = 'schema_version'
# def validate_json_schema(
#     json_dict: Dict[str, Any],
#     schema_version: Optional[str] = None) -> Dict[str, Any]:
# def _find_json_schema(schema_version: Optional[str] = None) -> Dict[str, Any]:
# def get_latest_schema_version() -> str:


import json
import os
import pkgutil
import jsonschema
from absl.testing import absltest
from absl.testing import parameterized
from model_card_toolkit.utils import validation
    "users": [{
        "description": "foo"
    }, {
        "description": "bar"
    }],
    "use_cases": [{
        "description": "use case 1"
    }],
    "limitations": [{
        "description": "a limitation"
    }],
    "tradeoffs": [{
        "description": "tradeoff 1"
    }],
    "ethical_considerations": [{
        "name": "risk1",
        "mitigation_strategy": "a solution"
    }]
}
_MODEL_CARD_V2_DICT = {
    "model_details": _MODEL_DETAILS_V2_DICT,
    "model_parameters": _MODEL_PARAMETERS_V2_DICT,
    "quantitative_analysis": _QUANTITATIVE_ANALYSIS_V2_DICT,
    "considerations": _CONSIDERATIONS_V2_DICT
}


class ValidationTest(parameterized.TestCase):

  def test_validate_json_schema(self):

# Path: model_card_toolkit/utils/validation.py
# _SCHEMA_FILE_NAME = 'model_card.schema.json'
# _SCHEMA_VERSIONS = frozenset(('0.0.1', '0.0.2',))
# _LATEST_SCHEMA_VERSION = max(_SCHEMA_VERSIONS, key=semantic_version.Version)
# SCHEMA_VERSION_STRING = 'schema_version'
# def validate_json_schema(
#     json_dict: Dict[str, Any],
#     schema_version: Optional[str] = None) -> Dict[str, Any]:
# def _find_json_schema(schema_version: Optional[str] = None) -> Dict[str, Any]:
# def get_latest_schema_version() -> str:


# Path: model_card_toolkit/utils/validation_test.py
import json
import os
import pkgutil
import jsonschema
from absl.testing import absltest
from absl.testing import parameterized
from model_card_toolkit.utils import validation

    "users": [{
        "description": "foo"
    }, {
        "description": "bar"
    }],
    "use_cases": [{
        "description": "use case 1"
    }],
    "limitations": [{
        "description": "a limitation"
    }],
    "tradeoffs": [{
        "description": "tradeoff 1"
    }],
    "ethical_considerations": [{
        "name": "risk1",
        "mitigation_strategy": "a solution"
    }]
}
_MODEL_CARD_V2_DICT = {
    "model_details": _MODEL_DETAILS_V2_DICT,
    "model_parameters": _MODEL_PARAMETERS_V2_DICT,
    "quantitative_analysis": _QUANTITATIVE_ANALYSIS_V2_DICT,
    "considerations": _CONSIDERATIONS_V2_DICT
}


class ValidationTest(parameterized.TestCase):

  def test_validate_json_schema(self):

    validation.validate_json_schema(_MODEL_CARD_V1_DICT,