#NEWLINE# def create_context( id_type = None , env = None , username = None , password = None , tenant_id = None , tenant_name = None , api_key = None , verify_ssl = None ) : #NEWLINE# #INDENT# "\n    Returns an instance of the specified identity class, or if none is\n    specified, an instance of the current setting for 'identity_class'.\n\n    You may optionally set the environment by passing the name of that\n    environment in the 'env' parameter.\n    " #NEWLINE# if username : #NEWLINE# #INDENT# set_environment ( env ) #NEWLINE# #UNINDENT# return _create_identity ( id_type = id_type , username = username , password = password , tenant_id = tenant_id , tenant_name = tenant_name , api_key = api_key , verify_ssl = verify_ssl , return_context = True )