code: def _get_qemu_img_version(qemu_img_path):
          
  
          try:
              output = yield from subprocess_check_output(qemu_img_path, "--version")
              match = re.search("version\s+([0-9a-z\-\.]+)", output)
              if match:
                  version = match.group(1)
                  return version
              else:
                  raise QemuError("Could not determine the Qemu-img version for {}".format(qemu_img_path))
          except subprocess.SubprocessError as e:
              raise QemuError("Error while looking for the Qemu-img version: {}".format(e))
docs: Gets the Qemu-img version.
  
          :param qemu_img_path: path to Qemu-img executable.