def METHOD_NAME() -> str:
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    # When binding a socket to port 0, the kernel will assign it a free port
    sock.bind(("", 0))
    port = str(sock.getsockname()[1])
    # Queue up to 10 requests
    sock.listen(10)
    return port