def METHOD_NAME():
    config = get_basic_magnitude_sparsity_config()
    config["compression"]["params"] = {"weight_importance": "abs"}
    sparse_model, compression_ctrl = create_compressed_model_and_algo_for_test(get_magnitude_test_model(), config)
    compression_ctrl.set_sparsity_level(0.3)
    TFTensorListComparator.check_equal(ref_mask_1, sparse_model.layers[1].weights[-1])
    TFTensorListComparator.check_equal(ref_mask_2, sparse_model.layers[2].weights[-1])