code: def _validate_pts(pts_range: Tuple[int, int]) -> None:
      if pts_range[0] > pts_range[1] > 0:
          raise ValueError(
              f"Start pts should not be smaller than end pts, got start pts: {pts_range[0]} and end pts: {pts_range[1]}"
          )
  
imports: import math
  import warnings
  from fractions import Fraction
  from typing import Dict, List, Optional, Tuple, Union
  import torch
  from ..extension import _load_library
label_desc: Use image node_id 1 for calling a global function with example usage: _validate_pts(pts_range) without return types