code: def test_pigear_playback():
      """
      Tests PiGear's playback capabilities
      """
      try:
          from vidgear.gears import PiGear
  
          # open pi video stream with default parameters
          stream = PiGear(
              logging=True, colorspace="COLOR_BGR2GRAY"
          ).start()
          # playback
          i = 0
          while i < 10:
              frame = stream.read()
              if frame is None:
                  break
              i += 1
          # clean resources
          stream.stop()
      except Exception as e:
          if isinstance(e, ImportError):
              logger.exception(e)
          else:
              pytest.fail(str(e))
  
imports: import time
  import pytest
  import logging
  import platform
  from vidgear.gears.helper import logger_handler
label_desc: Use image node_id 1 for calling a global function with example usage: test_pigear_playback() without return types