code: def test_write_defaults():
      write_defaults = defaults(sf.write)
      init_defaults = defaults(sf.SoundFile.__init__)
  
      # Same default values as SoundFile.__init__()
      init_defaults = remove_items(init_defaults, write_defaults)
  
      del init_defaults["mode"]  # mode is always 'x' or 'w'
      del init_defaults["channels"]  # Inferred from data
      del init_defaults["samplerate"]  # Obligatory in write()
      assert not init_defaults
  
file_path: python-soundfile/tests/test_argspec.py
imports: import pytest
  import soundfile
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: test_write_defaults() without return types