def test_instantiate_a_hugging_face_model_with_custom_model_properties(self, mock_auto_model, mock_auto_tokenizer):
        """Test that a model can be instantiated with custom model properties."""
        model_properties = {
            "name": "test-model",
            "type": "hf",
            "dimensions": 123,
            "tokens": 456,
            "poolingMethod": "cls",
        }

        model = HuggingFaceModel(model_properties, "cpu", None)
        self.assertIsInstance(model, HuggingFaceModel)
        self.assertEqual("cpu", model.device)
        self.assertEqual(None, model.model_auth)
        self.assertEqual("test-model", model.model_properties.name)
        self.assertEqual("hf", model.model_properties.type)
        self.assertEqual(123, model.model_properties.dimensions)
        self.assertEqual(456, model.model_properties.tokens)
        self.assertEqual(PoolingMethod.CLS, model.model_properties.pooling_method)
Test that a model can be instantiated with custom model properties.
tests/integ_tests/core/inference/embedding_models/test_hugging_face_model.py