def extract_archive(client, archive_path, extract_path=None):
command = '<STR_LIT>'.format(path=archive_path)<EOL>if extract_path:<EOL><INDENT>command += '<STR_LIT>'.format(extract_path=extract_path)<EOL><DEDENT>out = execute_ssh_command(client, command)<EOL>return out<EOL>
Extract the archive in current path using the provided client.

If extract_path is provided extract the archive there.