def test_pagination_offset_exceeded_error(self):
        """
        Verify InvalidArgs error is raised when offset is exceeded
        """
        for index in [self.index_structured, self.index_unstructured]:
            for search_method in [SearchMethod.TENSOR, SearchMethod.LEXICAL]:
                for offset in [10001, 12000, 50000]:
                    with self.subTest(f'Index: {index.type}, Search method: {search_method}, Offset: {offset}'):
                        with self.assertRaises(api_exceptions.IllegalRequestedDocCount):
                            tensor_search.search(
                                search_method=search_method,
                                config=self.config,
                                index_name=index.name,
                                text='my title',
                                result_count=100, offset=offset,
                            )

        Verify InvalidArgs error is raised when offset is exceeded
        
tests/integ_tests/tensor_search/test_pagination.py