code: def setUp(self):
      super().setUp()
  
      # Mock sounddevice.InputStream
      with _mock.patch(
          "sounddevice.InputStream"
      ) as mock_input_stream_new_method:
          self.mock_input_stream = _mock.MagicMock()
          mock_input_stream_new_method.return_value = (
              self.mock_input_stream
          )
          self.record = audio_record.AudioRecord(
              _CHANNELS, _SAMPLING_RATE, _BUFFER_SIZE
          )
  
          # Save the initialization arguments of InputStream for later assertion.
          _, self.init_args = mock_input_stream_new_method.call_args
  
file_path: mediapipe/mediapipe/tasks/python/test/audio/core/audio_record_test.py
imports: import unittest
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from mediapipe.tasks.python.audio.core import audio_record
label_desc: Use image node_id 1 for calling the AudioRecordTest obj's underlying member method code with example usage: obj.setUp() without return types