code: def test_PiGear_import():
      """
      Testing VideoGear Import -> assign to fail when PiGear class is imported
      """
      # cleanup environment
  
      try:
          del sys.modules["picamera"]
          del sys.modules["picamera.array"]
      except KeyError:
          pass
  
      try:
          stream = VideoGear(enablePiCamera=True, logging=True).start()
          stream.stop()
      except Exception as e:
          if isinstance(e, ImportError):
              pytest.xfail(str(e))
          else:
              pytest.fail(str(e))
  
file_path: vidgear/vidgear/tests/videocapture_tests/test_videogear.py
imports: import os
  import sys
  import pytest
  import platform
  import logging
  import tempfile
  from vidgear.gears import VideoGear
  from vidgear.gears.helper import logger_handler
label_desc: Use image node_id 2 for calling a global function with example usage: test_PiGear_import() without return types