def METHOD_NAME(snap_id, presence, revision):
    payload = {
        "name": "set-1",
    }
    if presence is not None:
        payload["presence"] = presence
    if snap_id is not None:
        payload["id"] = snap_id
    if revision is not None:
        payload["revision"] = revision
    s = validation_sets.Snap.unmarshal(payload)
    assert repr(s) == "<Snap: 'set-1'>"
    assert s.name == payload["name"]
    assert s.snap_id == payload.get("id")
    assert s.presence == payload.get("presence")
    assert s.revision == payload.get("revision")
    assert s.marshal() == payload