def METHOD_NAME(prefix, labelindex):
    output = exabgp_get_update_prefix(
        logfile, "ipv4 nlri-mpls", "10.0.0.101", prefix
    )
    expected = {
        "type": "update",
        "neighbor": {
            "ip": "10.0.0.1",
            "message": {
                "update": {
                    "attribute": {
                        "attribute-0x28-0xE0": "0x010007000000{:08x}".format(
                            labelindex
                        )
                    },
                    "announce": {"ipv4 nlri-mpls": {"10.0.0.101": {}}},
                }
            },
        },
    }
    return topotest.json_cmp(output, expected)