code: def examples(test_images, tmp_path_factory):
      """Create two dirs, one with one dataset and one with two datasets"""
  
      workdir = tmp_path_factory.getbasetemp() / "test_dicom"
  
      # Prepare sources
      fname1 = test_images / "dicom_sample1.zip"
      fname2 = test_images / "dicom_sample2.zip"
      dname1 = workdir / "dicom_sample1"
      dname2 = workdir / "dicom_sample2"
  
      # folder 1
      ZipFile(fname1).extractall(dname1)
  
      # folder 2
      ZipFile(fname1).extractall(dname2)
      ZipFile(fname2).extractall(dname2)
  
      # a file from each folder
      # tests expect this to be a string
      fname1 = str(next(dname1.iterdir()))
      fname2 = str(next(dname2.iterdir()))
  
      yield dname1, dname2, fname1, fname2
  
file_path: imageio/tests/test_dicom.py
imports: from zipfile import ZipFile
  import numpy
  import pytest
  import imageio.v2
  import imageio.v3
  from imageio import core
  import imageio.plugins.dicom
  from conftest import deprecated_test
label_desc: Use image node_id 1 for calling a global function with example usage: examples(test_images, tmp_path_factory) without return types