def METHOD_NAME(secrets, creds, scope, force=False):
    storage = Storage(creds)
    credentials = storage.get()
    if credentials is None or credentials.invalid or force:
      credentials = run_flow(flow_from_clientsecrets(secrets, scope=scope), storage, argparser.parse_args([]))
    if credentials.access_token_expired:
        credentials.refresh(httplib2.Http())
    return credentials