def test_load_OpenCLIPModel_with_auth_hf(self):
        """Ensure that the model/checkpoint is downloaded with the correct S3 authentication."""
        model_tag = "my_test_model"
        model_properties = {
            "name": "ViT-B-16",
            "model_location": {
                "hf": {
                    "repo_id": "my-hf-repo",
                    "filename": "my-hf-filename.pt"
                },
                "authRequired": True,
            },
            "type": "open_clip",
            "dimensions": 768
        }

        model_auth = ModelAuth(**{"hf": {"token":"my_hf_token"}})

        with patch("marqo.inference.native_inference.embedding_models.open_clip_model.download_model") as mock_download_model:
            # It's ok to return a RuntimeError as we are testing the download_model function
            with self.assertRaises(RuntimeError) as e:
                model = OpenCLIPModel(model_properties=model_properties, device="cpu", model_auth=model_auth)
                model.load()

            mock_download_model.assert_called_once_with(
                repo_location=ModelLocation(**model_properties["model_location"]),
                auth=model_auth,
            )
Ensure that the model/checkpoint is downloaded with the correct S3 authentication.
tests/integ_tests/core/inference/test_open_clip_model_load.py