docstr: Can overwrite PTS
docstr_tok: ["Can","overwrite","PTS"]
code: def test_video_pts_overwrite(self, frame_rate, num_frames):
      """Can overwrite PTS"""
  
      ext = "mp4"
      filename = f"test.{ext}"
      width, height = 8, 8
  
      # Write data
      dst = self.get_temp_path(filename)
      writer = torchaudio.io.StreamWriter(dst=dst, format=ext)
      writer.add_video_stream(
          frame_rate=frame_rate, width=width, height=height
      )
  
      video = torch.zeros((1, 3, height, width), dtype=torch.uint8)
      reference_pts = []
      with writer.open():
          for i in range(num_frames):
              pts = i / frame_rate
              reference_pts.append(pts)
              writer.write_video_chunk(0, video, pts)
  
      reader = torchaudio.io.StreamReader(
          src=self.get_temp_path(filename)
      )
      reader.add_video_stream(1)
      pts = [chunk.pts for (chunk,) in reader.stream()]
      assert len(pts) == len(reference_pts)
  
      for val, ref in zip(pts, reference_pts):
          # torch provides isclose, but we don't know if converting floats to tensor
          # could introduce a descrepancy, so we compare floats and use math.isclose
          # for that.
          assert math.isclose(val, ref)
  
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 11 for calling the StreamWriterCorrectnessTest obj's underlying member method code with example usage: obj.test_video_pts_overwrite(frame_rate, num_frames) without return types