code: def _ending_tester(self, file, expected):
      alphabet = Alphabet(
          os.path.join(os.path.dirname(__file__), "test_data", file)
      )
      label = ""
      label_id = -1
      for expected_label, expected_label_id in expected:
          try:
              label_id = alphabet.Encode(expected_label)
          except KeyError:
              pass
          self.assertEqual(label_id, [expected_label_id])
          try:
              label = alphabet.Decode([expected_label_id])
          except KeyError:
              pass
          self.assertEqual(label, expected_label)
  
file_path: DeepSpeech/tests/test_text.py
imports: import unittest
  import os
  from ds_ctcdecoder import Alphabet
label_desc: Use image node_id 1 for calling the TestAlphabetParsing obj's underlying member method code with example usage: obj._ending_tester(file, expected) without return types