Seems this function is added only in qemu_vm.py. And as this is a case for both libvirt and qemu it may cause problem for libvirt tests.