code: def test_webcam_get_next_data():
      try:
          reader = iio.get_reader("<video0>")
      except IndexError:
          pytest.xfail("no webcam")
  
      # Get a number of frames and check for if they are new
      counter_new_frames = 0
      number_of_iterations = 100
      for i in range(number_of_iterations):
          frame = reader.get_next_data()
          if frame.meta["new"]:
              counter_new_frames += 1
  
      assert counter_new_frames < number_of_iterations, (
          "assuming the loop is faster than the webcam, the number of unique "
          "frames should be smaller than the number of iterations"
      )
      reader.close()
  
imports: import gc
  import os
  import platform
  import sys
  import threading
  import time
  import warnings
  from io import BytesIO
  from pathlib import Path
  import imageio.plugins
  import imageio.v2
  import imageio.v3
  import numpy
  import pytest
  from imageio import core
  from imageio.core import IS_PYPY
  from conftest import deprecated_test
label_desc: Use image node_id 20 for calling a global function with example usage: test_webcam_get_next_data() without return types