def test_sequentially_search(self):
        """Iterate through each index and loading each model. We expect to not run out of space as previously
         loaded models are ejected to make space for newer ones.

        If the Marqo does through this test, it indicates that a problem with model cache ejection.

        Running this without a sleep between each call sometimes kills Marqo. This is probably because
        we don't have much control over the garbage collection of dereferenced objects in Python,
        resulting in an Out Of Memory crash.

        Because rapidly loading different models is a niche usecase, we want to relax the strictness of
        the test (by adding a sleep) rather than making the ejections stricter (for example, by locking
        the available models dict).
        """

        # this downloads the models if they aren't already downloaded
        for index_name in list(self.index_model_object):
            self.client.index(index_name).search(q='What is the best outfit to wear on the moon?', device=self.device)
            time.sleep(5)

        # this loads the models from disk to memory
        for index_name in list(self.index_model_object):
            self.client.index(index_name).search(q='What is the best outfit to wear on the moon?', device=self.device)
            time.sleep(5)
        return True
Iterate through each index and loading each model. We expect to not run out of space as previously
         loaded models are ejected to make space for newer ones.

        If the Marqo does through this test, it indicates that a problem with model cache ejection.

        Running this without a sleep between each call sometimes kills Marqo. This is probably because
        we don't have much control over the garbage collection of dereferenced objects in Python,
        resulting in an Out Of Memory crash.

        Because rapidly loading different models is a niche usecase, we want to relax the strictness of
        the test (by adding a sleep) rather than making the ejections stricter (for example, by locking
        the available models dict).
        
tests/api_tests/v1/tests/api_tests/test_model_eject_and_concurrency.py