docstr: Asserts that the last token of each sentence in x is not EOS
docstr_tok: ["Asserts","that","the","last","token","of","each","sentence","in","x","is","not","EOS"]
code: def assert_no_eos_at_end(self, x, x_len, eos):
      """Asserts that the last token of each sentence in x is not EOS"""
      for i in range(len(x_len)):
          self.assertNotEqual(
              x[x_len[i] - 1][i],
              eos,
              "Expected no eos (token id {eos}) at the end of sentence {i}.".format(
                  eos=eos, i=i
              ),
          )
  
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 16 for calling the TestDataNoising obj's underlying member method code with example usage: obj.assert_no_eos_at_end(x, x_len, eos) without return types