def authorize(self, client):
    """Authorize a gdata.client.GDClient instance with these credentials.

    Args:
       client: An instance of gdata.client.GDClient
           or something that acts like it.

    Returns:
       A modified instance of client that was passed in.

    Example:
      >>> c = gdata.client.GDClient(source='user-agent')
      >>> c = token.authorize(c)
    """
    client.auth_token = self
    request_orig = client.http_client.request

    def new_request(http_request):
      response = request_orig(http_request)
      if response.status <= 401:
        refresh_response = self._refresh(request_orig)
        if self._invalid:
          return refresh_response
        else:
          self.modify_request(http_request)
          return request_orig(http_request)
      else:
        return response

    client.http_client.request = new_request
    return client
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py/OAuth2Token.authorize/operator `==` -> `<=`