code: def test_life_cycle(self):
      # Assert start recording routine.
      self.record.start_recording()
      self.mock_input_stream.start.assert_called_once()
  
      # Assert stop recording routine.
      self.record.stop()
      self.mock_input_stream.stop.assert_called_once()
  
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 3 for calling the AudioRecordTest obj's underlying member method code with example usage: obj.test_life_cycle() without return types