code: def test_build_data(self, to_convert_rate):
      # mock has AudioData's attributes (e.g. sample_rate)
      audio_data = MagicMock(spec=AudioData(None, 1, 1))
      sut = google.RequestBuilder(key="", language="", filter_level=0)
  
      actual = sut.build_data(audio_data)
  
      self.assertEqual(actual, audio_data.get_flac_data.return_value)
      audio_data.get_flac_data.assert_called_once_with(
          convert_rate=to_convert_rate.return_value, convert_width=2
      )
      to_convert_rate.assert_called_once_with(audio_data.sample_rate)
  
imports: from unittest import TestCase
  from unittest.mock import MagicMock, patch
  from urllib.request import Request
  from speech_recognition import Recognizer
  from speech_recognition.audio import AudioData
  from speech_recognition.recognizers import google
label_desc: Use image node_id 2 for calling the RequestBuilderTestCase obj's underlying member method code with example usage: obj.test_build_data(to_convert_rate) without return types