docstr: When set_metadata is called multiple times, only entries from the last call are saved
docstr_tok: ["When","set_metadata","is","called","multiple","times",",","only","entries","from","the","last","call","are","saved"]
code: def test_metadata_overwrite(self):
      """When set_metadata is called multiple times, only entries from the last call are saved"""
      from tinytag import TinyTag
  
      src_fmt = "s16"
      sample_rate = 8000
      num_channels = 1
  
      dst = self.get_dst("test.mp3")
      s = StreamWriter(dst, format="mp3")
      s.set_metadata(metadata={"artist": "torchaudio", "title": "foo"})
      s.set_metadata(metadata={"title": self.id()})
      s.add_audio_stream(sample_rate, num_channels, format=src_fmt)
  
      chunk = get_audio_chunk(src_fmt, sample_rate, num_channels)
      with s.open():
          s.write_audio_chunk(0, chunk)
  
      path = self.get_temp_path("test.mp3")
      tag = TinyTag.get(path)
      assert tag.artist is None
      assert tag.title == self.id()
  
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 5 for calling the StreamWriterInterfaceTest obj's underlying member method code with example usage: obj.test_metadata_overwrite() without return types