docstr: The purpose of this is to test shuffling logic with word vocabs
docstr_tok: ["The","purpose","of","this","is","to","test","shuffling","logic","with","word","vocabs"]
code: def test_word_shuffle_with_eos_nonbpe(self):
      """The purpose of this is to test shuffling logic with word vocabs"""
      vocab, x, x_len = self._get_test_data_with_word_vocab(
          append_eos=True
      )
  
      # Assert word shuffle with max shuffle distance 0 causes input to be
      # unchanged
      self.assert_word_shuffle_matches_expected(
          x=x,
          x_len=x_len,
          max_shuffle_distance=0,
          vocab=vocab,
          expected_shufle_maps=[
              self.generate_unchanged_shuffle_map(example_len)
              for example_len in x_len
          ],
          expect_eos_at_end=True,
      )
  
      # Assert word shuffle with max shuffle distance 3 matches our expected
      # shuffle order
      self.assert_word_shuffle_matches_expected(
          x=x,
          x_len=x_len,
          vocab=vocab,
          max_shuffle_distance=3,
          expected_shufle_maps=[
              {0: 0, 1: 1, 2: 3, 3: 2},
              {0: 0, 1: 2, 2: 1, 3: 3, 4: 4},
          ],
          expect_eos_at_end=True,
      )
  
imports: import unittest
  from typing import Dict, List
  import torch
  import tests.utils
  from fairseq import utils
  from fairseq.data import Dictionary, LanguagePairDataset, TransformEosDataset, data_utils, noising
label_desc: Use image node_id 13 for calling the TestDataNoising obj's underlying member method code with example usage: obj.test_word_shuffle_with_eos_nonbpe() without return types