def METHOD_NAME(model_func, *args, **kwargs):
    """Run a test pipeline for the given type of feature extractor
    See the test_*_descriptors functions for how this is used.
    """
    with tempfile.TemporaryDirectory() as dir_:
        def j(*args): return os.path.join(dir_, *args)
        # Create all files required by the pipeline file
        torch.save(model_func().state_dict(), j('model.pt'))
        create_test_image_list(dir_)
        pipeline = build_descriptor_pipeline(*args, **kwargs)
        run_pipeline_in_dir(dir_, pipeline)