def test_load_OpenCLIPModel_with_auth_s3(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": {
                "s3": {
                    "Bucket": "my-bucket",
                    "Key": "my-key",
                },
                "authRequired": True,
            },
            "type": "open_clip",
            "dimensions": 768,
        }

        model_auth = ModelAuth(s3 = S3Auth(
            aws_access_key_id="my_access_key",
            aws_secret_access_key="my_secret_key",
        ))

        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):
                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