def METHOD_NAME(prefix, all_compcor_name):
    """Get confound columns by prefix and acompcor mask.
    Parameters
    ----------
    prefix : :obj:`str`
        Prefix to use for compcor components.
    all_compcor_name : :obj:`list`
        List of all compcor components column names.
    Returns
    -------
    compcor_cols_filt : :obj:`list`
        List of compcor components column names filtered by prefix.
    """
    compcor_cols_filt = []
    for nn in range(len(all_compcor_name)):
        nn_str = str(nn).zfill(2)
        compcor_col = f"{prefix}_comp_cor_{nn_str}"
        compcor_cols_filt.append(compcor_col)
    return compcor_cols_filt