def test_bad_creds_error_hf(self):
        """the model and repo do exist, but creds are bad. raises the same type of error
        as the previous one. """
        hf_object = "dummy_model.pt"
        hf_repo_name = "Marqo/test-private"
        hf_token = "hf_some_secret_key"

        model_auth = ModelAuth(
            hf=HfAuth(token=hf_token)
        )

        model_properties = {
            "name": "ViT-B/32",
            "dimensions": 512,
            "model_location": {
                "hf": {
                    "repo_id": hf_repo_name,
                    "filename": hf_object,
                },
                "auth_required": True
            },
            "type": "open_clip",
        }
        s3_settings = _get_base_index_settings()
        s3_settings['index_defaults']['model_properties'] = model_properties
        tensor_search.create_vector_index(config=self.config, index_name=self.index_name_1, index_settings=s3_settings)

        with self.assertRaises(BadRequestError) as cm:
            tensor_search.search(
                config=self.config, text='hello', index_name=self.index_name_1,
                model_auth=model_auth
            )
        self.assertIn("Could not find the specified Hugging Face model repository.", str(cm.exception))

        with self.assertRaises(BadRequestError) as cm2:
            res = self.add_documents(
                config=self.config, add_docs_params=AddDocsParams(
                    index_name=self.index_name_1, auto_refresh=True,
                    docs=[{'title': 'blah blah'}], model_auth=model_auth, device="cpu"
                )
            )
        self.assertIn("Could not find the specified Hugging Face model repository.", str(cm.exception))
the model and repo do exist, but creds are bad. raises the same type of error
        as the previous one. 
tests/integ_tests/tensor_search/test_model_auth.py