code: def test_ports(server_ports, client_ports, options):
      """
      Test made to fail on wrong port values
      """
      if server_ports:
          server = NetGear(
              pattern=1, port=server_ports, logging=True, **options
          )
          server.close()
      else:
          client = NetGear(
              port=client_ports,
              pattern=1,
              receive_mode=True,
              logging=True,
              **options,
          )
          client.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 12 for calling a global function with example usage: test_ports(server_ports, client_ports, options) without return types