code: def test_write_deprecations(self):
      with io.BytesIO(b"") as tmpfile:
          with wave.open(tmpfile, "wb") as writer:
              writer.setnchannels(1)
              writer.setsampwidth(1)
              writer.setframerate(1)
              writer.setcomptype("NONE", "not compressed")
  
              with self.assertWarns(DeprecationWarning):
                  with self.assertRaises(wave.Error):
                      writer.setmark(0, 0, "mark")
              with self.assertWarns(DeprecationWarning):
                  with self.assertRaises(wave.Error):
                      writer.getmark("mark")
              with self.assertWarns(DeprecationWarning):
                  self.assertIsNone(writer.getmarkers())
  
imports: import unittest
  from test import audiotests
  from test import support
  import io
  import struct
  import sys
  import wave
label_desc: Use image node_id 3 for calling the MiscTestCase obj's underlying member method code with example usage: obj.test_write_deprecations() without return types