docstr: PTS values increment by the inverse of frame rate
docstr_tok: ["PTS","values","increment","by","the","inverse","of","frame","rate"]
code: def test_video_pts_increment(self):
      """PTS values increment by the inverse of frame rate"""
  
      ext = "mp4"
      num_frames = 256
      filename = f"test.{ext}"
      frame_rate = 5000 / 167
      width, height = 96, 128
  
      # 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.randint(
          256, (num_frames, 3, height, width), dtype=torch.uint8
      )
      with writer.open():
          writer.write_video_chunk(0, video)
  
      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) == num_frames
  
      for i, val in enumerate(pts):
          expected = i / frame_rate
          assert abs(val - expected) < 1e-10
  
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 9 for calling the StreamWriterCorrectnessTest obj's underlying member method code with example usage: obj.test_video_pts_increment() without return types