code: def test_audioclip_io(util):
      filename = os.path.join(util.TMP_DIR, "random.wav")
  
      # Generate a random audio clip of 4.989 seconds at 44100 Hz,
      # and save it to a file.
      input_array = np.random.random((220000, 2)) * 1.98 - 0.99
      clip = AudioArrayClip(input_array, fps=44100)
      clip.write_audiofile(filename, logger=None)
      # Load the clip.
      # The loaded clip will be slightly longer because the duration is rounded
      # up to 4.99 seconds.
      # Verify that the extra frames are all zero, and the remainder is identical
      # to the original signal.
      clip = AudioFileClip(filename)
      output_array = clip.to_soundarray()
      np.testing.assert_array_almost_equal(
          output_array[: len(input_array)], input_array, decimal=4
      )
      assert (output_array[len(input_array) :] == 0).all()
  
file_path: moviepy/tests/test_AudioClips.py
imports: import os
  import numpy
  import pytest
  from moviepy.audio.AudioClip import AudioArrayClip, AudioClip, CompositeAudioClip, concatenate_audioclips
  from moviepy.audio.io.AudioFileClip import AudioFileClip
label_desc: Use image node_id 2 for calling a global function with example usage: test_audioclip_io(util) without return types