code: def pick_unused_port():
    
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.bind(('localhost', 0))
    addr, port = s.getsockname()
    s.close()
    return port
docs: get an unused port on the VM.
  
    Returns:
      An unused port.