code: def test_transform_images(tmpdir):
      image_path = os.path.join(tmpdir, "image.png")
      dataset_dir = os.path.join(tmpdir, "images")
  
      _write_image(image_path, size=(720, 1280))
      dataset = _make_dataset(image_path, dataset_dir, num_samples=100)
  
      sample = dataset.first()
      assert sample.filepath.endswith(".png")
  
      foui.reencode_images(dataset, ext=".jpg")
      assert sample.filepath.endswith(".jpg")
  
      foui.transform_images(dataset, ext=".jpg", force_reencode=True)
      assert sample.filepath.endswith(".jpg")
  
      foui.transform_images(dataset, max_size=(256, 256), num_workers=1)
      dataset.compute_metadata(overwrite=True)
      assert sample.metadata.height <= 256
      assert sample.metadata.width <= 256
  
      foui.transform_images(
          dataset, min_size=(512, 512), delete_originals=True
      )
      dataset.compute_metadata(overwrite=True)
      assert sample.metadata.height >= 512
      assert sample.metadata.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 7 for calling a global function with example usage: test_transform_images(tmpdir) without return types