def test_none_query_tensor(self):
        """Ensure that a None query tensor raises an errors."""
        for index in [self.structured_text_index_score_modifiers, self.semi_structured_default_text_index]:
            with self.subTest(index=index.type):
                self.add_documents(
                    config=self.config, add_docs_params=AddDocsParams(
                        index_name=index.name, docs=self.docs_list,
                        tensor_fields=["text_field_1"] if isinstance(index, UnstructuredMarqoIndex) else None
                    )
                )

                with self.assertRaises(InvalidArgumentError):
                    tensor_search.search(
                        config=self.config, index_name=index.name, search_method="HYBRID", text=None,
                        hybrid_parameters=HybridParameters(
                            queryTensor=None,
                            retrievalMethod=RetrievalMethod.Tensor,
                            rankingMethod=RankingMethod.Tensor
                        ), result_count=5
                    )
Ensure that a None query tensor raises an errors.
tests/integ_tests/tensor_search/integ_tests/test_hybrid_search.py