docstr: Test if there are redundant indices.
docstr_tok: ["Test","if","there","are","redundant","indices","."]
code: def test_redundant_idx(self):
      """Test if there are redundant indices."""
  
      self.assertEqual(
          len(self.en_sents.idx), len(set(self.en_sents.idx))
      )
      self.assertEqual(
          len(self.ar_sents.idx), len(set(self.ar_sents.idx))
      )
      self.assertEqual(
          len(self.ja_sents.idx), len(set(self.ja_sents.idx))
      )
  
      self.assertEqual(
          len(self.en_words.idx), len(set(self.en_words.idx))
      )
      self.assertEqual(
          len(self.ar_words.idx), len(set(self.ar_words.idx))
      )
      self.assertEqual(
          len(self.ja_words.idx), len(set(self.ja_words.idx))
      )
  
file_path: polyglot/polyglot/tokenize/tests/test_base.py
imports: import unittest
  from ..base import SentenceTokenizer, WordTokenizer
  from ...base import Sequence
label_desc: Use image node_id 4 for calling the BaseTest obj's underlying member method code with example usage: obj.test_redundant_idx() without return types