def METHOD_NAME(tmp_path):
    file_name = tmp_path / "ranking_coeffs.json"
    model = PruningTestModel()
    ref_ranking_coeffs = {model.CONV_1_NODE_NAME: (1, 0), model.CONV_2_NODE_NAME: (1, 0)}
    config = get_basic_pruning_config()
    config["compression"]["algorithm"] = "filter_pruning"
    config["compression"]["params"]["prune_first_conv"] = True
    config["compression"]["params"]["save_ranking_coeffs_path"] = str(file_name)
    _, compression_ctrl = create_compressed_model_and_algo_for_test(model, config)
    assert compression_ctrl.ranking_coeffs == ref_ranking_coeffs
    # check that in specified file some coeffs are saved (1, 0 in case of not-legr)
    with open(file_name, "r", encoding="utf8") as f:
        saved_coeffs_in_file = json.load(f)
    assert all(ref_ranking_coeffs[key] == tuple(saved_coeffs_in_file[key]) for key in saved_coeffs_in_file)