def METHOD_NAME(path_to_all_plotfiles):
    """
    Update all benchmarks (overwrites reference json files)
    found in path_to_all_plotfiles
    Parameters
    ----------
    path_to_all_plotfiles: string
        Path to all plotfiles for which the benchmarks
        are to be reset. The plotfiles should be named <test_name>_plt, which is
        what regression_testing.regtests.py does, provided we're careful enough.
    """
    # Get list of plotfiles in path_to_all_plotfiles
    plotfile_list = glob.glob(path_to_all_plotfiles + '*_plt*[0-9]',
                              recursive=True)
    plotfile_list.sort()
    # Loop over plotfiles and reset the corresponding benchmark
    for plotfile in plotfile_list:
        test_name = os.path.split(plotfile)[1][:-9]
        reset_benchmark(test_name, plotfile)