code: def check_reader(unicode_string, encoding):
      bytestr = unicode_string.encode(encoding)
      stream = BytesIO(bytestr)
      reader = SeekableUnicodeStreamReader(stream, encoding)
  
      # Should open at the start of the file
      assert reader.tell() == 0
  
      # Compare original string to contents from `.readlines()`
      assert unicode_string == "".join(reader.readlines())
  
      # Should be at the end of the file now
      stream.seek(0, os.SEEK_END)
      assert reader.tell() == stream.tell()
  
      reader.seek(0)  # go back to start
  
      # Compare original string to contents from `.read()`
      contents = ""
      char = None
      while char != "":
          char = reader.read(1)
          contents += char
      assert unicode_string == contents
  
file_path: nltk/nltk/test/unit/test_seekable_unicode_stream_reader.py
imports: import os
  from io import BytesIO
  import pytest
  from nltk.corpus.reader import SeekableUnicodeStreamReader
label_desc: Use image node_id 1 for calling a global function with example usage: check_reader(unicode_string, encoding) without return types