docstr: Increasing the specified bit rate yields a larger encoded output.
docstr_tok: ["Increasing","the","specified","bit","rate","yields","a","larger","encoded","output","."]
code: def test_codec_config_bit_rate_output(self):
      """Increasing the specified bit rate yields a larger encoded output."""
      ext = "mp3"
      sample_rate = 44100
      num_channels = 2
      audio = torch.rand((8000, num_channels))
  
      def write_audio(buffer, bit_rate):
          writer = torchaudio.io.StreamWriter(dst=buffer, format=ext)
          writer.add_audio_stream(
              sample_rate=sample_rate,
              num_channels=num_channels,
              codec_config=CodecConfig(bit_rate=bit_rate),
          )
  
          with writer.open():
              writer.write_audio_chunk(0, audio)
  
      dst = io.BytesIO()
      write_audio(dst, 198_000)
      out0_size = dst.tell()
  
      dst = io.BytesIO()
      write_audio(dst, 320_000)
      out1_size = dst.tell()
  
      self.assertGreater(out1_size, out0_size)
  
imports: import io
  import math
  import torch
  import torchaudio
  from parameterized import parameterized, parameterized_class
  from torchaudio.io import CodecConfig, StreamReader, StreamWriter
  from torchaudio_unittest.common_utils import get_asset_path, get_sinusoid, nested_params, rgb_to_yuv_ccir, skipIfNoFFmpeg, skipIfNoModule, TempDirMixin, TorchaudioTestCase
  from .common import lt42
label_desc: Use image node_id 13 for calling the StreamWriterCorrectnessTest obj's underlying member method code with example usage: obj.test_codec_config_bit_rate_output() without return types