def METHOD_NAME(tmp_path, model_to_test):
    onnx_model_dir = TEST_ROOT / "onnx" / "data" / "models"
    onnx_model_path = onnx_model_dir / (model_to_test.model_name + ".onnx")
    if not os.path.isdir(onnx_model_dir):
        os.mkdir(onnx_model_dir)
    original_model = load_model_topology_with_zeros_weights(onnx_model_path)
    if model_to_test.model_name != "MaskRCNN-12":
        original_model = convert_opset_version(original_model)
    path_to_dot = REFERENCE_GRAPHS_DIR / model_to_test.path_ref_graph
    nncf_graph = GraphConverter.create_nncf_graph(original_model)
    nx_graph = nncf_graph.get_graph_for_structure_analysis(extended=True)
    compare_nx_graph_with_reference(nx_graph, path_to_dot, check_edge_attrs=True)