code: def test_primary_mode(receive_mode):
      """
      Tests NetGear Bare-minimum network playback capabilities
      """
      stream = None
      conn = None
      try:
          # open stream
          options_gear = {"THREAD_TIMEOUT": 60}
          stream = VideoGear(
              source=return_testvideo_path(), **options_gear
          ).start()
          frame = stream.read()
          # open server and client with default params
          conn = NetGear(receive_mode=receive_mode)
          if receive_mode:
              conn.send(frame)
          else:
              frame_client = conn.recv()
      except Exception as e:
          if isinstance(e, ValueError):
              pytest.xfail("Test Passed!")
          elif isinstance(e, (queue.Empty)):
              logger.exception(str(e))
          else:
              pytest.fail(str(e))
      finally:
          # clean resources
          if not (stream is None):
              stream.stop()
          if not (conn is None):
              conn.close()
  
imports: import os
  import platform
  import queue
  import cv2
  import numpy
  import pytest
  import random
  import logging
  import tempfile
  from zmq.error import ZMQError
  from vidgear.gears import NetGear, VideoGear
  from vidgear.gears.helper import logger_handler
label_desc: Use image node_id 3 for calling a global function with example usage: test_primary_mode(receive_mode) without return types