code: def test_transform_videos(tmpdir):
      video_path = os.path.join(tmpdir, "video.avi")
      dataset_dir = os.path.join(tmpdir, "videos")
  
      _write_video(video_path, fps=5, size=(720, 1280), num_frames=30)
      dataset = _make_dataset(video_path, dataset_dir, num_samples=2)
  
      sample = dataset.first()
      assert sample.filepath.endswith(".avi")
  
      fouv.reencode_videos(dataset)
      assert sample.filepath.endswith(".mp4")
  
      fouv.transform_videos(dataset, reencode=True, force_reencode=True)
      assert sample.filepath.endswith(".mp4")
  
      fouv.transform_videos(dataset, max_size=(256, 256))
      dataset.compute_metadata(overwrite=True)
      assert sample.metadata.frame_height <= 256
      assert sample.metadata.frame_width <= 256
  
      fouv.transform_videos(
          dataset, min_size=(512, 512), delete_originals=True
      )
      dataset.compute_metadata(overwrite=True)
      assert sample.metadata.frame_height >= 512
      assert sample.metadata.frame_width >= 512
  
file_path: fiftyone/tests/intensive/utils_tests.py
imports: import os
  import numpy
  import pytest
  import eta.core.utils
  import eta.core.video
  import fiftyone
  import fiftyone.utils.image
  import fiftyone.utils.video
label_desc: Use image node_id 8 for calling a global function with example usage: test_transform_videos(tmpdir) without return types