def METHOD_NAME(vm_uuid, vm_name=None, external=False):
    if vm_name is None:
        vm_name = 'vm-%s' % vm_uuid
    if external:
        return _MINIMAL_EXTERNAL_DOMAIN_TEMPLATE.format(
            vm_uuid=vm_uuid, vm_name=vm_name
        )
    return _MINIMAL_DOMAIN_TEMPLATE.format(
        vm_uuid=vm_uuid, vm_name=vm_name
    )