<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_lxc_version():
 """ Asks the current host what version of LXC it has. Returns it as a string. If LXC is not installed, raises subprocess.CalledProcessError"""


    runner = functools.partial(
        subprocess.check_output,
        stderr=subprocess.STDOUT,
        universal_newlines=True,
    )

    # Old LXC had an lxc-version executable, and prefixed its result with
    # "lxc version: "
    try:
        result = runner(['lxc-version']).rstrip()
        return parse_version(result.replace("lxc version: ", ""))
    except (OSError, subprocess.CalledProcessError):
        pass

    # New LXC instead has a --version option on most installed executables.
    return parse_version(runner(['lxc-start', '--version']).rstrip())