code: def test_server_reliablity(options):
      """
      Testing validation function of NetGear API
      """
      server = None
      stream = None
      frame_client = None
      try:
          # define params
          server = NetGear(
              address="127.0.0.1"
              if "ssh_tunnel_mode" in options
              else None,
              pattern=1,
              port=[5585]
              if "multiclient_mode" in options.keys()
              else 6654,
              logging=True,
              **options,
          )
          stream = cv2.VideoCapture(return_testvideo_path())
          i = 0
          while i < random.randint(10, 100):
              (grabbed, frame_client) = stream.read()
              i += 1
          # check if input frame is valid
          assert not (frame_client is None)
          # send frame without connection
          server.send(frame_client)
          server.send(frame_client)
      except Exception as e:
          if isinstance(e, (RuntimeError)):
              pytest.xfail("Reconnection ran successfully.")
          else:
              logger.exception(str(e))
      finally:
          # clean resources
          if not (stream is None):
              stream.release()
          if not (server is None):
              server.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 11 for calling a global function with example usage: test_server_reliablity(options) without return types