def test_validate_model_properties_missing_required_keys(self):
        """validate_model_properties should throw an exception if required keys are not given.
        """
        model_name = "test-model"
        model_properties = {  # "name": "sentence-transformers/all-mpnet-base-v2",
            # "dimensions": 768,
            "tokens": 128,
            "type": "sbert"}

        self.assertRaises(InvalidModelPropertiesError, validate_model_properties, model_name, model_properties)

        """validate_model_properties should not throw an exception if required keys are given.
        """
        model_properties['dimensions'] = 768
        model_properties['name'] = "sentence-transformers/all-mpnet-base-v2"

        validated_model_properties = validate_model_properties(model_name, model_properties)

        self.assertEqual(validated_model_properties, model_properties)
validate_model_properties should throw an exception if required keys are not given.
        
tests/integ_tests/s2_inference/test_generic_model.py