code: def get_lxc_version():
      
  
      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())
docs: Asks the current host what version of LXC it has.  Returns it as a
      string. If LXC is not installed, raises subprocess.CalledProcessError