def test_validate_model_properties_missing_optional_keys(self):
        """If optional keys are not given, validate_model_properties should add the keys with default values.
        """
        model_name = 'test-model'
        model_properties = {"name": "sentence-transformers/all-mpnet-base-v2",
                            "dimensions": 768
                            # "tokens": 128,
                            # "type":"sbert"
                            }

        validated_model_properties = validate_model_properties(model_name, model_properties)
        default_tokens_value = validated_model_properties.get('tokens')
        default_type_value = validated_model_properties.get('type')

        self.assertEqual(default_tokens_value, 128)
        self.assertEqual(default_type_value, "sbert")
If optional keys are not given, validate_model_properties should add the keys with default values.
        
tests/integ_tests/s2_inference/test_generic_model.py