def METHOD_NAME(self, service_name):
    contents = (
        ServiceDocumenter(
            service_name, self._session, self.root_services_path
        )
        .document_service()
        .decode('utf-8')
    )
    start_of_table_of_contents = 'Table of Contents'
    start_index = contents.find(start_of_table_of_contents)
    contents = contents[:start_index]
    contents = contents.encode('utf-8')
    return contents