code: def _decode_video_timestamps(
      container: "av.container.Container",
  ) -> List[int]:
      if _can_read_timestamps_from_packets(container):
          # fast path
          return [
              x.pts
              for x in container.demux(video=0)
              if x.pts is not None
          ]
      else:
          return [
              x.pts
              for x in container.decode(video=0)
              if x.pts is not None
          ]
  
file_path: vision/torchvision/io/video.py
imports: import gc
  import math
  import os
  import re
  import warnings
  from fractions import Fraction
  from typing import Any, Dict, List, Optional, Tuple, Union
  import numpy
  import torch
  from ..utils import _log_api_usage_once
  from .None import _video_opt
label_desc: Use image node_id 8 for calling a global function with example usage: _decode_video_timestamps(container) and returns: unknown, unknown