def expand(template_str, dictionary, **kwargs):
  t = Template(template_str, **kwargs)
  return t.expand(dictionary)
check if libvirt is available.
dataset/ETHPy150Open cloudbuilders/radioedit/jsontemplate.py/expand--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_libvirt.py/IptablesFirewallTestCase.lazy_load_library_exists