code: def event_stream(self, from_token, timeout=30000):
          
          warnings.warn("event_stream is deprecated. Use sync instead.",
                        DeprecationWarning)
          path = "/events"
          return self._send(
              "GET", path, query_params={
                  "timeout": timeout,
                  "from": from_token
              }
          )
docs: Deprecated. Use sync instead.
          Performs /events
  
          Args:
              from_token (str): The 'from' query parameter.
              timeout (int): Optional. The 'timeout' query parameter.