code: def try_port(port):
      """Tests if port is available
  
      Parameters
      -----------
      port : int
          Port number
  
      Returns
      --------
      bool
      """
      sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
      result = False
      try:
          sock.bind(("127.0.0.1", port))
          result = True
      except:
          pass
      sock.close()
      return result
  
file_path: DALEX/python/dalex/dalex/arena/static.py
imports: import json
  import webbrowser
  import random
  import socket
  import logging
  import sys
  from .server import convert
label_desc: Use image node_id 1 for calling a global function with example usage: try_port(port) and returns: result