code: def get_socket(dname, protocol, host, dno):
      
  
      modname = _socket_mods.get(platform, _default_socket_mod)
      mod = _relative_import(modname)
      return mod.get_socket(dname, protocol, host, dno)
docs: socket = get_socket(dname, protocol, host, dno)
  
      Connect to the display specified by DNAME, PROTOCOL, HOST and DNO, which
      are the corresponding values from a previous call to get_display().
  
      Return SOCKET, a new socket object connected to the X server.