def is_nova_server(resource):
    """
    checks resource is a nova server
    """
    return (
        isinstance(resource, dict)
        and "type" in resource
        and "properties" in resource
        and resource.get("type") == "OS::Nova::Server"
    )