def test_missing_punkt_downloaded(self):
        """A test to ensure that the script will attempt to download the punkt_tab
        tokenizer if it is not found"""
        with mock.patch("marqo.inference.native_inference.remote.server.on_start_script.nltk.data.find") as mock_find, \
             mock.patch("marqo.inference.native_inference.remote.server.on_start_script.nltk.download") as mock_nltk_download:
                # Mock find to always succeed
                mock_find.side_effect = LookupError()

                checker = on_start_script.CheckNLTKTokenizers()
                with self.assertRaises(StartupSanityCheckError):
                    checker.run()
                mock_nltk_download.assert_any_call("punkt_tab")
A test to ensure that the script will attempt to download the punkt_tab
        tokenizer if it is not found
tests/unit_tests/marqo/inference/native_inference/remote/server/test_on_start_script.py