def test_1_load_model_from_hf_zip_file_with_auth_add_documents(self):
        """
        Does not yet assert that a file is downloaded
        """
        hf_object = "some_model.pt"
        hf_repo_name = "MyRepo/test-private"
        hf_token = "hf_some_secret_key"

        model_properties = {
            #"name": "ViT-B/32", Note, name is not a required field for HF models.
            "dimensions": 384,
            "model_location": {
                "hf": {
                    "repo_id": hf_repo_name,
                    "filename": hf_object,
                },
                "auth_required": True
            },
            "type": "hf",
        }
        hf_settings = _get_base_index_settings()
        hf_settings['index_defaults']['model_properties'] = model_properties
        tensor_search.create_vector_index(config=self.config, index_name=self.index_name_1, index_settings=hf_settings)

        mock_hf_hub_download = mock.MagicMock()
        mock_hf_hub_download.return_value = 'cache/path/to/model.zip'

        mock_extract_huggingface_archive = mock.MagicMock()
        mock_extract_huggingface_archive.return_value = 'cache/path/to/model/'

        mock_automodel_from_pretrained = mock.MagicMock()
        mock_autotokenizer_from_pretrained = mock.MagicMock()

        with unittest.mock.patch('transformers.AutoModel.from_pretrained', mock_automodel_from_pretrained):
            with unittest.mock.patch('transformers.AutoTokenizer.from_pretrained', mock_autotokenizer_from_pretrained):
                with unittest.mock.patch('marqo.s2_inference.model_downloading.from_hf.hf_hub_download', mock_hf_hub_download):
                    with unittest.mock.patch("marqo.core.inference.embedding_models.hugging_face_model.HuggingFaceModel."
                    "extract_huggingface_archive", mock_extract_huggingface_archive):
                        try:
                            self.add_documents(config=self.config, add_docs_params=AddDocsParams(
                                index_name=self.index_name_1, auto_refresh=True, docs=[{'a': 'b'}],
                                model_auth=ModelAuth(hf=HfAuth(token=hf_token)), device="cpu"))
                        except KeyError as e:
                            # KeyError as this is not a real model. It does not have an attention_mask
                            assert "attention_mask" in str(e)
                            pass

        mock_hf_hub_download.assert_called_once_with(
            token=hf_token,
            repo_id=hf_repo_name,
            filename=hf_object,
            cache_dir = ModelCache.hf_cache_path
        )

        # is the hf model being loaded with the expected args?
        assert len(mock_automodel_from_pretrained.call_args_list) == 1
        assert mock_automodel_from_pretrained.call_args_list[0][0][0] == 'cache/path/to/model/', "Expected call not found"

        # is the zip file being extracted with the expected args?
        assert len(mock_extract_huggingface_archive.call_args_list) == 1
        assert mock_extract_huggingface_archive.call_args_list[0][0][0] == 'cache/path/to/model.zip', "Expected call not found"

        Does not yet assert that a file is downloaded
        
tests/integ_tests/tensor_search/test_model_auth.py