original_docstring: Return a user id associated with an auth plugin.
  
      :param auth: the auth plugin to inspect.
  
      :returns: a token associated with the auth.
      
docstring: Return a user id associated with an auth plugin.
docstring_tokens: Return a user id associated with an auth plugin .
code: def user_id_from_auth(auth):
      '''Return a user id associated with an auth plugin.
  
      :param auth: the auth plugin to inspect.
  
      :returns: a token associated with the auth.
      '''
      return auth.get_user_id(sessions.cache().get_session(
          sessions.SESSION_TYPE_KEYSTONE))
code_tokens: def user_id_from_auth ( auth ) : return auth . get_user_id ( sessions . cache ( ) . get_session ( sessions . SESSION_TYPE_KEYSTONE ) )
short_docstring: Return a user id associated with an auth plugin.
short_docstring_tokens: Return a user id associated with an auth plugin .
comment: '''Return a user id associated with an auth plugin.
  
      :param auth: the auth plugin to inspect.
  
      :returns: a token associated with the auth.
      '''