code: def test_seeking(tmp_path):
      """
      Create an animated WebP file, and then try seeking through frames in reverse-order,
      verifying the timestamps and durations are correct.
      """
  
      dur = 33
      temp_file = str(tmp_path / "temp.webp")
      with Image.open("Tests/images/anim_frame1.webp") as frame1:
          with Image.open("Tests/images/anim_frame2.webp") as frame2:
              frame1.save(
                  temp_file,
                  save_all=True,
                  append_images=[frame2, frame1, frame2, frame1],
                  duration=dur,
              )
  
      with Image.open(temp_file) as im:
          assert im.n_frames == 5
          assert im.is_animated
  
          # Traverse frames in reverse, checking timestamps and durations
          ts = dur * (im.n_frames - 1)
          for frame in reversed(range(im.n_frames)):
              im.seek(frame)
              im.load()
              assert im.info["duration"] == dur
              assert im.info["timestamp"] == ts
              ts -= dur
  
file_path: pillow-simd/Tests/test_file_webp_animated.py
imports: import pytest
  from PIL import Image
  from .helper import assert_image_equal, assert_image_similar, is_big_endian, skip_unless_feature
label_desc: Use image node_id 5 for calling a global function with example usage: test_seeking(tmp_path) without return types