docs: def check_socket(host, port):
      """Checks if port is open on host. This is used to check if the
      Xenon-GRPC server is running."""
      with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as sock:
          return sock.connect_ex((host, port)) == 0