<s> """<STR_LIT>""" <EOL> from . import util <EOL> import json <EOL> def create_wallet ( password , api_code , service_url , priv = None , label = None , email = None ) : <EOL> """<STR_LIT>""" <EOL> params = { '<STR_LIT:password>' : password , '<STR_LIT>' : api_code } <EOL> if priv is not None : <EOL> params [ '<STR_LIT>' ] = priv <EOL> if label is not None : <EOL> params [ '<STR_LIT:label>' ] = label <EOL> if email is not None : <EOL> params [ '<STR_LIT:email>' ] = email <EOL> response = util . call_api ( "<STR_LIT>" , params , base_url = service_url ) <EOL> json_response = json . loads ( response ) <EOL> return CreateWalletResponse ( json_response [ '<STR_LIT>' ] , <EOL> json_response [ '<STR_LIT:address>' ] , <EOL> json_response [ '<STR_LIT:label>' ] ) <EOL> class CreateWalletResponse : <EOL> def __init__ ( self , identifier , address , label ) : <EOL> self . identifier = identifier <EOL> self . address = address <EOL> self . label = label </s>
