def test_trust_remote_code_validation_true(self):
        """
        Test that no error is raised when trust_remote_code is set to True.
        """
        for model_trust_remote_code, tokenizer_trust_remote_code in [(True, False), (False, True), (True, True)]:
            with self.subTest(model_trust_remote_code=model_trust_remote_code,
                              tokenizer_trust_remote_code=tokenizer_trust_remote_code):
                model_properties = {'name': 'my_model', 'type': 'hf', 'dimensions': 512, 'trustRemoteCode': True}
                device = 'cpu'

                # Case 1: trust_remote_code flag not set in model_properties, should raise InvalidModelPropertiesError
                model_flags = HuggingFaceModelFlags(trust_remote_code=model_trust_remote_code)
                tokenizer_flags = HuggingFaceTokenizerFlags(trust_remote_code=tokenizer_trust_remote_code)

                self.assertIsNotNone(HuggingFaceModel(model_properties, device, model_flags=model_flags,
                                                      tokenizer_flags=tokenizer_flags))

        Test that no error is raised when trust_remote_code is set to True.
        
tests/integ_tests/core/inference/embedding_models/test_hugging_face_model.py