code: def test_segment_all_articles(self):
      title, sections, interlinks = next(
          segment_all_articles(self.fname, include_interlinks=True)
      )
  
      # Check title
      self.assertEqual(title, self.expected_title)
  
      # Check section titles
      section_titles = [s[0] for s in sections]
      self.assertEqual(section_titles, self.expected_section_titles)
  
      # Check text
      first_section_text = sections[0][1]
      first_sentence = "'''Anarchism''' is a political philosophy that advocates self-governed societies"
      self.assertTrue(first_sentence in first_section_text)
  
      # Check interlinks
      self.assertEqual(len(interlinks), 685)
      self.assertTrue(
          interlinks[0]
          == ("political philosophy", "political philosophy")
      )
      self.assertTrue(
          interlinks[1] == ("self-governance", "self-governed")
      )
      self.assertTrue(
          interlinks[2] == ("stateless society", "stateless societies")
      )
  
imports: from __future__ import unicode_literals
  import json
  import logging
  import os.path
  import unittest
  import numpy
  from gensim import utils
  from gensim.scripts.segment_wiki import segment_all_articles, segment_and_write_all_articles
  from gensim.test.utils import datapath, get_tmpfile
  from gensim.scripts.word2vec2tensor import word2vec2tensor
  from gensim.models import KeyedVectors
label_desc: Use image node_id 3 for calling the TestSegmentWiki obj's underlying member method code with example usage: obj.test_segment_all_articles() without return types