def METHOD_NAME() -> int:
    """Gets a random port that is not in use.
    :return: Port that is open.
    """
    sock = socket.socket()
    sock.bind(("", 0))
    socketPort = sock.getsockname()[1]
    sock.close()
    return socketPort