code: def test_write_after_async_writer_closed(self):
      filename = os.path.join(
          self.get_temp_dir(), "write_after_async_writer_closed"
      )
      w = _AsyncWriter(open(filename, "wb"))
      bytes_to_write = b"x" * 64
      w.write(bytes_to_write)
      w.close()
  
      with self.assertRaises(IOError):
          w.write(bytes_to_write)
      # nothing is written to the file after close
      with open(filename, "rb") as f:
          self.assertEqual(f.read(), bytes_to_write)
  
imports: import glob
  import os
  import threading
  import time
  from typing import Optional
  from unittest.mock import MagicMock
  from tensorboard.summary.writer.event_file_writer import EventFileWriter
  from tensorboard.summary.writer.event_file_writer import _AsyncWriter
  from tensorboard.compat.proto import event_pb2
  from tensorboard.compat.proto.summary_pb2 import Summary
  from tensorboard.compat.tensorflow_stub.pywrap_tensorflow import PyRecordReader_New
  from tensorboard import test
label_desc: Use image node_id 5 for calling the AsyncWriterTest obj's underlying member method code with example usage: obj.test_write_after_async_writer_closed() without return types