def METHOD_NAME(graph):
    other = Graph.from_data(json.loads(json.dumps(graph.data)))
    assert graph.data == other.data
    assert graph.default_node_attributes == other.default_node_attributes
    assert graph.default_edge_attributes == other.default_edge_attributes
    assert graph.number_of_nodes() == other.number_of_nodes()
    assert graph.number_of_edges() == other.number_of_edges()
    if not compas.IPY:
        assert Graph.validate_data(graph.data)
        assert Graph.validate_data(other.data)