docs: def get_rackspace_token(username, apikey):
      """Get Rackspace Identity token.
  
      Login to Rackspace with cloud account and api key from environment vars.
      Returns dict of the token and tenant id.
      """
      auth_params = {
          "auth": {
              "RAX-KSKEY:apiKeyCredentials": {
                  "username": username,
                  "apiKey": apikey,
              }
          }
      }
      response = requests.post(RS_IDENTITY_URL, json=auth_params)
      if not response.ok:
          sys.exit(RS_AUTH_ERROR.format(response.status_code, response.text))
  
      identity = response.json()
      return (identity['access']['token']['id'],
              identity['access']['token']['tenant']['id'])