code: def test_reader_stream_closes_when_deleted():
      reader = SeekableUnicodeStreamReader(BytesIO(b""), "ascii")
      assert not reader.stream.closed
      reader.__del__()
      assert reader.stream.closed
  
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 3 for calling a global function with example usage: test_reader_stream_closes_when_deleted() without return types