def METHOD_NAME(data, expected):
    g = Graph().parse(data=data, format="turtle")
    result = g.serialize(format="json-ld", context=expected["@context"])
    result = json.loads(result)
    sort_graph(result)
    result = json.dumps(result, **json_kwargs)
    incr = itertools.count(1)
    result = re.sub(r'"_:[^"]+"', lambda m: '"_:blank-%s"' % next(incr), result)
    sort_graph(expected)
    expected = json.dumps(expected, **json_kwargs)
    assert result == expected, "Expected not equal to result: %s" % result