original_docstring: Return a session based client from the auth plugin provided.
  
      A session is obtained from the global session cache.
  
      :param auth: the auth plugin object to use in client creation.
  
      :returns: a keystone client
      
docstring: Return a session based client from the auth plugin provided.
  A session is obtained from the global session cache.
docstring_tokens: Return a session based client from the auth plugin provided . A session is obtained from the global session cache .
code: def client_from_auth(auth):
      '''Return a session based client from the auth plugin provided.
  
      A session is obtained from the global session cache.
  
      :param auth: the auth plugin object to use in client creation.
  
      :returns: a keystone client
      '''
      session = sessions.cache().get_session(sessions.SESSION_TYPE_KEYSTONE)
      if CONF.use_identity_api_v3:
          client_class = keystone_client_v3.Client
      else:
          client_class = keystone_client.Client
      return client_class(session=session, auth=auth)
code_tokens: def client_from_auth ( auth ) : session = sessions . cache ( ) . get_session ( sessions . SESSION_TYPE_KEYSTONE ) if CONF . use_identity_api_v3 : client_class = keystone_client_v3 . Client else : client_class = keystone_client . Client return client_class ( session = session , auth = auth )
short_docstring: Return a session based client from the auth plugin provided.
short_docstring_tokens: Return a session based client from the auth plugin provided .
comment: '''Return a session based client from the auth plugin provided.
  
      A session is obtained from the global session cache.
  
      :param auth: the auth plugin object to use in client creation.
  
      :returns: a keystone client
      '''