code: def require_oauth(function, *args, **kwargs):
      
      if not args[0].has_oauth_app_info:
          err_msg = ("The OAuth app config parameters client_id, client_secret "
                     "and redirect_url must be specified to use this function.")
          raise errors.OAuthAppRequired(err_msg)
      return function(*args, **kwargs)
docs: Verify that the OAuth functions can be used prior to use.
  
      Returned data is not modified.